Skip to content

Commit 5f8fd18

Browse files
committed
Updating test config: only run isort for newest python
1 parent 3423bd2 commit 5f8fd18

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ jobs:
55
build:
66
runs-on: ubuntu-latest
77
if: github.event.pull_request.draft == false
8+
env:
9+
python_latest = 3.14
810
strategy:
911
matrix:
1012
python-version: ['3.10', 3.11, 3.12, 3.13, 3.14]
11-
13+
1214
steps:
1315
- name: Checkout repository
1416
uses: actions/checkout@v4
@@ -23,13 +25,15 @@ jobs:
2325
python -m pip install --upgrade pip
2426
python -m pip install -e .[test]
2527
26-
- name: Lint with flake8
28+
- name: Check code style with flake8
2729
run: |
2830
python -m flake8 pcpostprocess/*.py tests/*.py pcpostprocess/scripts/*.py
31+
if: matrix.python-version == ${{ python-latest }}
2932

30-
- name: Import sorting with isort
33+
- name: Check import ordering with isort
3134
run: |
3235
python -m isort --verbose --check-only --diff pcpostprocess tests setup.py
36+
if: matrix.python-version == ${{ python-latest }}
3337

3438
- name: Extract test data
3539
run: |
@@ -41,18 +45,16 @@ jobs:
4145
python -m pip install -e .
4246
python -m pytest --cov --cov-config=.coveragerc
4347
44-
- name: Install TeX dependencies
48+
- name: Install TeX dependencies for run_herg_qc test
4549
timeout-minutes: 15
4650
run: |
4751
sudo apt-get install dvipng texlive-latex-extra texlive-fonts-recommended cm-super -y
4852
49-
- name: Test running QC
53+
- name: Test running run_herg_qc
5054
timeout-minutes: 15
5155
run: |
5256
pcpostprocess run_herg_qc tests/test_data/13112023_MW2_FF -w A01 A02 A03
5357
5458
- uses: codecov/codecov-action@v4
55-
with:
56-
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
57-
if: success() && matrix.python-version == 3.14
59+
if: success() && matrix.python-version == ${{ python-latest }}
5860

0 commit comments

Comments
 (0)