Makes warnings in solver only happen once #115
Workflow file for this run
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: Python package | |
on: | |
pull_request: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: [3.7, 3.8, 3.9] | |
os: ["ubuntu-latest"] | |
include: | |
- python-version: "3.9" | |
os: "macos-latest" | |
- python-version: "3.9" | |
os: "windows-latest" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install . | |
- name: Install testing packages | |
run: | | |
# pip install flake8 | |
# pip install pydocstyle | |
pip install pytest | |
pip install pytest-cov pytest-xdist codecov | |
- name: Test with pytest | |
run: | | |
pytest --cov=pyoscode tests | |
- name: Upload coverage to codecov | |
uses: codecov/codecov-action@v2 |