Fix invocation on first run on Windows #1484
Workflow file for this run
This file contains 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: | |
push: { branches: [ "master" ] } | |
pull_request: { branches: [ "master" ] } | |
concurrency: | |
group: test-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: "${{ matrix.on }}" | |
strategy: | |
matrix: | |
environment: [ sagemath-97, sagemath-98, sagemath-100, sagemath-101, sagemath-102, sagemath-103, dev] | |
on: [ ubuntu-24.04, macos-13 ] # we do not test macos-14 yet since we don't have osx-arm64 in our pyproject.toml | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: prefix-dev/setup-pixi@v0.8.1 | |
with: | |
pixi-version: v0.28.2 | |
environments: ${{ matrix.environment }} | |
- name: Run doctests | |
run: | | |
# Disable pytest in old versions of SageMath | |
export PYTHONPATH=test/disable-pytest:$PYTHONPATH | |
pixi run -e ${{ matrix.environment }} doctest-long | |
- name: Run pytest tests | |
run: pixi run -e ${{ matrix.environment }} pytest | |
if: ${{ matrix.environment == 'dev' }} | |
env: | |
MAKEFLAGS: -j4 | |
SAGE_NUM_THREADS: 4 |