Skip to content

Commit 652e9df

Browse files
committed
fix coverge command
1 parent da3c854 commit 652e9df

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
cache: true
3333
environments: ${{ matrix.environment }}
3434
- name: Run tests
35-
run: pixi run --environment=tests-ci tests-ci
35+
run: pixi run --environment=tests-ci tests-coverage-ci
3636
- name: Upload HTML coverage report
3737
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
3838
with:

pixi.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,19 @@ ccache = ">=4.11.2,<5"
9898
[feature.tests-ci.tasks]
9999
# Build and generate coverage report
100100
# TODO: use a task arg for parallelism https://github.com/prefix-dev/pixi/pull/3433
101-
build-tests-ci.cmd = ["cmake", "--build", "build", "--target", "coverage_html", "-j3"]
101+
build-tests-ci.cmd = ["cmake", "--build", "build", "-j3"]
102102
build-tests-ci.depends-on = ["clone-xsref", "configure-coverage"]
103103
build-tests-ci.cwd = "."
104104
# Run tests
105105
tests-ci.cmd = ["ctest", "--output-on-failure", "--test-dir", "build/tests", "-j3"]
106106
tests-ci.depends-on = ["build-tests-ci"]
107107
tests-ci.cwd = "."
108-
108+
# Coverage
109+
coverage.cmd = ["cmake", "--build", "build", "--target", "coverage_html", "-j3"]
110+
coverage.depends-on = ["tests-ci"]
111+
coverage.cwd = "."
112+
# Tests and coverage
113+
tests-coverage-ci.depends-on = ["coverage"]
109114

110115
[environments]
111116
default = { features = ["build", "tests"], solve-group = "default" }

0 commit comments

Comments
 (0)