-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (40 loc) · 1.05 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
name: Build/test suite
on:
push:
branches:
mainline
pull_request:
branches:
mainline
jobs:
build:
name: |
${{ matrix.os }}, numpy==${{ matrix.numpy }}, scipy==${{ matrix.scipy }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
numpy: "1.16"
scipy: "1.4"
python: "3.6"
- os: ubuntu-latest
numpy: auto
scipy: auto
python: "3.10"
steps:
- uses: actions/checkout@v2
- name: Set up python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install numpy ${{ matrix.numpy }}, scipy ${{ matrix.scipy }}
if: ${{ matrix.numpy != 'auto' }}
run: |
pip install numpy==${{ matrix.numpy}} scipy==${{ matrix.scipy }}
- name: Install package with testing dependencies
run: |
pip install .[test]
- name: Test with pytest
run: |
pytest