forked from data-apis/array-api-strict
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1003 Bytes
/
tests.yml
File metadata and controls
33 lines (32 loc) · 1003 Bytes
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
name: Tests
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
numpy-version: ['1.26', 'dev']
exclude:
- python-version: '3.13'
numpy-version: '1.26'
fail-fast: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
if [[ "${{ matrix.numpy-version }}" == "dev" ]]; then
python -m pip install --pre --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy;
else
python -m pip install 'numpy>=1.26,<2.0';
fi
python -m pip install -r requirements-dev.txt
- name: Run Tests
run: |
pytest
# Make sure it installs
pip install .