-
Notifications
You must be signed in to change notification settings - Fork 10
34 lines (31 loc) · 1 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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/[email protected]
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