Skip to content

Commit

Permalink
add cython test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Mar 4, 2024
1 parent 0c9a3d7 commit 84fc0bf
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,40 @@ jobs:
with:
artifact-name: test-check-docs

cython-cover:
name: Measure Cython Coverage
timeout-minutes: 30
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 👢 Set up Conda environment
uses: mamba-org/setup-micromamba@v1
id: setup
with:
environment-file: envs/lenskit-py3.11-dev.yaml
environment-name: lkpy
cache-environment: true
init-shell: bash

- name: Compile extension modules
run: |
just build-inplace
env:
BUILD_FOR_COVER: 1

- name: Run Eval Tests
run: |
python -m pytest --cov=lenskit -m 'not slow' --log-file test-cython-cover.log
- name: Process test results
uses: lenskit/lkbuild/actions/save-test-results@main
with:
artifact-name: test-cython-cover

vanilla:
name: Vanilla Python ${{matrix.python}} on ${{matrix.platform}}
runs-on: ${{matrix.platform}}-latest
Expand Down Expand Up @@ -223,6 +257,7 @@ jobs:
- vanilla
- check-docs
- mindep
- cython-cover

steps:
- name: Check out source
Expand Down

0 comments on commit 84fc0bf

Please sign in to comment.