-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.13 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
name: admmsolver python package
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
numpy-version: 1.16
scipy-version: 1.4
python-version: '3.9'
- os: ubuntu-latest
numpy-version: auto
scipy-version: auto
python-version: '3.10'
steps:
- uses: actions/checkout@v2
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install numpy ${{ matrix.numpy-version }}, scipy ${{ matrix.scipy-version }}
if: ${{ matrix.numpy-version != 'auto' }}
run: |
pip install numpy==${{ matrix.numpy-version}} scipy==${{ matrix.scipy-version }}
- name: Install package with testing dependencies
run: |
pip install .[test]
- name: Test with pytest
run: |
pytest
- name: Static type tests
run: |
mypy --ignore-missing-imports test
mypy --ignore-missing-imports src