Fix CI #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: admmsolver python package | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- 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 |