Skip to content

Commit 332f096

Browse files
committed
Refactor GitHub Actions workflow to simplify coverage testing and upload steps for Python 3.12
1 parent 49074d3 commit 332f096

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/build_test.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,10 @@ jobs:
4242
4343
- name: Run tests with coverage
4444
if: matrix.python-version == '3.12'
45-
run: |
46-
pip install coverage
47-
coverage run --source=essos -m pytest .
48-
coverage report
49-
coverage xml
45+
run: pytest --cov essos
5046

5147
- name: Upload coverage reports to Codecov
5248
if: github.repository_owner == 'uwplasma' && matrix.python-version == '3.12'
5349
uses: codecov/codecov-action@v5
5450
with:
55-
token: ${{ secrets.CODECOV_TOKEN }}
56-
files: ./coverage.xml
57-
flags: unittests
58-
env_vars: PYTHON
59-
name: codecov-umbrella
60-
fail_ci_if_error: true
61-
verbose: true
51+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)