|
6 | 6 | runs-on: ubuntu-latest |
7 | 7 | strategy: |
8 | 8 | matrix: |
9 | | - python-version: [3.7 ,3.8, 3.9, '3.10', 3.11] |
| 9 | + python-version: [3.8, 3.9, '3.10', 3.11, 3.12, 3.13] |
10 | 10 | steps: |
11 | 11 | - name: Checkout repository and submodules |
12 | 12 | uses: actions/checkout@v4 |
13 | 13 | with: |
14 | 14 | submodules: recursive |
15 | 15 | - name: Checkout github repo (+ download lfs dependencies) |
16 | 16 | uses: actions/checkout@v4 |
17 | | - with: |
18 | | - lfs: true |
19 | | - - name: Checkout LFS objects |
20 | | - run: git lfs checkout |
21 | 17 |
|
22 | 18 | - name: Set up Python ${{ matrix.python-version }} |
23 | 19 | uses: actions/setup-python@v5 |
24 | 20 | with: |
25 | 21 | python-version: ${{ matrix.python-version }} |
| 22 | + |
26 | 23 | - name: Install dependencies |
27 | 24 | run: | |
28 | | - python -m pip install --upgrade pip |
29 | 25 | python -m pip install .[test] |
| 26 | +
|
| 27 | + - name: Lint with flake8 |
| 28 | + run: | |
| 29 | + python -m flake8 syncropatch_export/*.py tests/*.py |
| 30 | +
|
| 31 | + - name: Import sorting with isort |
| 32 | + run: | |
| 33 | + python -m isort --verbose --check-only --diff syncropatch_export tests setup.py |
| 34 | +
|
30 | 35 | - name: Download and extract test data |
31 | 36 | run: | |
32 | 37 | wget https://cardiac.nottingham.ac.uk/syncropatch_export/test_data.tar.xz -P tests/ |
33 | 38 | tar xvf tests/test_data.tar.xz -C tests/ |
| 39 | +
|
34 | 40 | - name: Test with pytest |
35 | 41 | run: | |
36 | 42 | python -m pip install -e . |
37 | 43 | python -m pytest --cov --cov-config=.coveragerc |
| 44 | +
|
38 | 45 | - uses: codecov/codecov-action@v4 |
39 | 46 | with: |
40 | 47 | token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos |
41 | | - - name: Lint with flake8 |
42 | | - run: | |
43 | | - python -m flake8 syncropatch_export/*.py tests/*.py |
44 | | - - name: Import sorting with isort |
45 | | - run: | |
46 | | - python -m isort --verbose --check-only --diff syncropatch_export tests setup.py |
| 48 | + if: matrix.python-version == 3.13 |
| 49 | + |
0 commit comments