Skip to content

Commit e54e38c

Browse files
committed
better workflow logic
1 parent bd37815 commit e54e38c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/warning_test.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,20 @@ concurrency:
1515
jobs:
1616
warning_test:
1717
name: Warning Test
18+
env:
19+
PYTEST_OPTIONS: ${{ case(matrix.coverage == true, '--cov=pyuvdata --cov-config=.coveragerc --cov-report xml:coverage.xml', '') }}
1820
runs-on: ubuntu-latest
1921
strategy:
2022
fail-fast: false
2123
matrix:
2224
include:
2325
- python-version: 3.13
2426
pip-options: "dev"
25-
pytest-options: "--cov=pyuvdata --cov-config=.coveragerc --cov-report xml:coverage.xml"
27+
coverage: true
2628
# currently (April 2026), python-casacore does not build properly from pypi on python 3.14
2729
- python-version: 3.14
2830
pip-options: "test"
29-
pytest-options: ""
31+
coverage: false
3032
steps:
3133
- uses: actions/checkout@main
3234
with:
@@ -48,7 +50,7 @@ jobs:
4850
4951
- name: Run Tests
5052
run: |
51-
pytest -W error -n auto ${{ matrix.pytest-options }}
53+
pytest -W error -n auto ${{ env.PYTEST_OPTIONS }}
5254
5355
- uses: codecov/codecov-action@v5
5456
if: success()

0 commit comments

Comments
 (0)