-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (33 loc) · 1.17 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: tests
on: [push, pull_request]
jobs:
build_pip:
name: Build (${{ matrix.os }} Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: False
matrix:
os: ["ubuntu-latest", "macOS-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
id: cp
with:
python-version: ${{ matrix.python-version }}
update-environment: true
- name: Pip Install
run: |
'${{ steps.cp.outputs.python-path }}' -m pip install -vv -e .[test]
- name: Test run
run: |
'${{ steps.cp.outputs.python-path }}' -m pytest -v --disable-warnings pCrunch
- name: Test examples
run: |
cd examples
treon -v example.ipynb