Skip to content

Commit 5ab5674

Browse files
committed
ci: export coverage even on failure
1 parent d73bf09 commit 5ab5674

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,22 @@ jobs:
3737
- name: Install dependencies
3838
run: poetry install
3939
- name: Run tests with coverage
40-
run: |
41-
poetry run coverage run
42-
poetry run coverage xml
40+
run: poetry run coverage run
4341
env:
4442
POSTGRES_HOST: localhost
4543
POSTGRES_USER: postgres
4644
POSTGRES_PASSWORD: postgres
4745
TESTING: "true"
4846
SECRET_KEY: "very_secret_key"
4947
OIDC_OP_JWKS_ENDPOINT: "http://nowhere.com"
48+
49+
- name: Export Coverage
50+
if: always()
51+
run: poetry run coverage xml
52+
5053
- name: Upload Coverage to Codecov
5154
uses: codecov/codecov-action@v3
55+
if: always()
5256
with:
5357
verbose: true
5458
files: coverage.xml

0 commit comments

Comments
 (0)