Skip to content

Commit

Permalink
DEV: setup pixi
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascolley committed Nov 13, 2024
1 parent 0e01e58 commit faf3164
Show file tree
Hide file tree
Showing 5 changed files with 3,005 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SCM syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
19 changes: 6 additions & 13 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,16 @@ jobs:
fail-fast: false

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install packages
run: sudo apt-get install -y lcov
- uses: prefix-dev/[email protected]
with:
pixi-version: v0.35.0
cache: true

- name: Configure
run: cmake -DCMAKE_BUILD_TYPE=Coverage -S . -B build
- name: Build
run: cmake --build build
- name: Run Tests
working-directory: build
run: ctest
- name: Generating coverage report
run: cmake --build build --target coverage_html
- name: Run tests and generate coverage report
run: pixi run tests-coverage

- name: Upload HTML coverage report
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: cov-html
path: build/coverage_report/**

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ build/
*.exe
*.out
*.app

# pixi environments
.pixi
*.egg-info
Loading

0 comments on commit faf3164

Please sign in to comment.