Add tracking of more than one low-energy state #37
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: Run tests and other quality checks | |
on: [pull_request] | |
jobs: | |
run_tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.9'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies and the package | |
run: | | |
pip install --upgrade pip setuptools wheel | |
pip install .[test] | |
- name: Run unit tests | |
run: | | |
pytest --cov=omnisolver.pt | |
NUMBA_DISABLE_JIT=1 pytest --cov=omnisolver.pt --cov-report=xml | |
- name: Report coverage | |
uses: codecov/codecov-action@v2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | |
fail_ci_if_error: true | |
run_quality_cheks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- uses: actions/checkout@v2 | |
- name: Run quality checks | |
uses: ricardochaves/python-lint@v1.4.0 | |
with: | |
python-root-list: "omnisolver/pt" | |
use-pylint: false | |
use-pycodestyle: false | |
use-flake8: true | |
use-mypy: true | |
use-black: true | |
use-isort: true | |
extra-flake8-options: --max-line-length=100 | |
extra-mypy-options: --ignore-missing-imports | |
extra-isort-options: --check-only --profile black |