Skip to content

Commit

Permalink
Split unit/integration tests (#547)
Browse files Browse the repository at this point in the history
It turns out reports are merged by codecov (see
https://docs.codecov.com/docs/merging-reports), so we can run tests
independently without losing results.

Signed-off-by: Daniel Grimm <[email protected]>
  • Loading branch information
dgn authored Jan 7, 2025
1 parent 6fb050a commit e1cf8a7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: integration-tests

on: [push, pull_request]

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run coverage
run: |
make test.integration \
-e COVERAGE=true
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
files: out/coverage-unit.out,out/coverage-integration.out
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Code coverage workflow
name: unit-tests

on: [push, pull_request]

Expand All @@ -10,7 +10,7 @@ jobs:

- name: Run coverage
run: |
make test \
make test.unit \
-e COVERAGE=true
- name: Upload to Codecov
Expand Down
3 changes: 2 additions & 1 deletion .github/codecov.yml → codecov.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ignore:
- "api"
- "hack"
- "tests"
- "tools"
- "tests"

0 comments on commit e1cf8a7

Please sign in to comment.