0.3.x #15
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
workflow_call: | |
push: | |
branches: ["*.X"] | |
pull_request: | |
branches: ["*.X"] | |
jobs: | |
call-lint: | |
uses: ./.github/workflows/static.yml | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: prefix-dev/setup-pixi@v0.8.8 | |
with: | |
environments: dev | |
cache: true | |
- name: Re-install local | |
run: | | |
# Needed on Windows CI to compile with Visual Studio compiler | |
# otherwise Meson detects a MINGW64 platform and use MINGW64 | |
# toolchain | |
pixi reinstall -e dev --frozen fastcan -- -Csetup-args=--vsenv | |
- name: Test with pytest | |
run: | | |
pixi run test | |
- name: Test with doctest | |
shell: bash | |
run: | | |
pixi run doc | |
CMD=doctest pixi run doc | |
- name: Test nogil | |
run: | | |
pixi run nogil-eta | |
- name: Test coverage | |
if: runner.os == 'Linux' | |
shell: bash | |
run: | | |
FMT=xml pixi run test-coverage | |
- name: Upload coverage reports to Codecov | |
if: runner.os == 'Linux' | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |