-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (45 loc) · 1.2 KB
/
pytest.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: xprec python package
on:
push:
branches:
mainline
pull_request:
branches:
mainline
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
numpy-version: 1.16
python-version: 3.6
- os: ubuntu-latest
numpy-version: auto
python-version: 3.9
- os: ubuntu-latest
numpy-version: 2.0
python-version: 3.11
- os: windows-latest
numpy-version: auto
python-version: 3.9
- os: macos-12
numpy-version: auto
python-version: 3.9
steps:
- uses: actions/checkout@v4
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install numpy ${{ matrix.numpy-version }}
if: ${{ matrix.numpy-version != 'auto' }}
run: |
pip install numpy==${{ matrix.numpy-version }}
- name: Install package with testing dependencies
run: |
pip install -v .[test]
- name: Test with pytest
run: |
pytest