Skip to content

Commit 92d9938

Browse files
committed
adjusting workflow wrt coverage trigger
1 parent b7d874a commit 92d9938

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

.github/workflows/tests-linux.yml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -89,38 +89,39 @@ jobs:
8989
python -m coverage --version
9090
python -c "import numba; print('Numba version:', numba.__version__)"
9191
92-
- name: Run tests (non-tilestitcher)
92+
- name: Test other modules with pytest and generate coverage
9393
shell: bash -l {0}
94-
env:
95-
COVERAGE_FILE: .coverage_others
9694
run: |
97-
pytest -m "not slow and not exclude" --maxfail=2 --disable-warnings -q --cov --cov-append
95+
COVERAGE_FILE=.coverage_others coverage run -m pytest -m "not slow and not exclude"
9896
99-
- name: Run tests (tile_stitcher)
97+
- name: Test tile_stitcher with pytest and generate coverage
98+
shell: bash -l {0}
99+
run: |
100+
COVERAGE_FILE=.coverage_tilestitcher coverage run -m pytest tests/preprocessing_tests/test_tilestitcher.py
101+
102+
- name: Combine Coverage Data
100103
shell: bash -l {0}
101-
env:
102-
COVERAGE_FILE: .coverage_tilestitcher
103104
run: |
104-
pytest tests/preprocessing_tests/test_tilestitcher.py --disable-warnings -q --cov --cov-append
105+
coverage combine .coverage_tilestitcher .coverage_others
105106
106-
- name: Combine coverage
107+
- name: Generate Combined Coverage Report
107108
shell: bash -l {0}
108109
run: |
109-
coverage combine || true
110-
coverage xml -o combined_coverage.xml || true
110+
coverage xml -o combined_coverage.xml
111111
112-
- name: Upload coverage to Codecov
113-
uses: codecov/codecov-action@v4
112+
- name: Upload combined coverage to Codecov
113+
uses: codecov/codecov-action@v2
114114
with:
115115
token: ${{ secrets.CODECOV_TOKEN }}
116+
env_vars: OS,PYTHON
117+
fail_ci_if_error: true
116118
files: ./combined_coverage.xml
117-
fail_ci_if_error: false
118119
name: codecov-umbrella
119-
verbose: false
120+
verbose: true
120121

121-
- name: Build docs (lightweight)
122+
- name: Compile docs
122123
shell: bash -l {0}
123124
run: |
124125
cd docs
125-
pip install -r readthedocs-requirements.txt --no-cache-dir
126-
make html -j 1
126+
pip install -r readthedocs-requirements.txt
127+
make html

0 commit comments

Comments
 (0)