Update setup.cfg #167
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: "CI" | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
schedule: | |
# At 07:00 UTC on Monday and Thursday. | |
- cron: "0 7 * * 1,4" | |
concurrency: | |
# Cancel out any previous workflows within the same PR | |
group: "${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}" | |
cancel-in-progress: True | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
tests: | |
runs-on: ${{ matrix.OS }}-latest | |
name: "tests" | |
strategy: | |
fail-fast: False | |
matrix: | |
os: ['ubuntu', 'macos'] | |
python-version: ["3.9", "3.10"] | |
exclude: | |
- os: 'macos' | |
python-version: '3.10' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: True | |
use-mamba: True | |
python-version: ${{ matrix.python-version }} | |
miniforge-variant: Mambaforge | |
environment-file: environment.yml | |
activate-environment: openfe-benchmarks | |
- name: "install" | |
run: python setup.py develop --no-deps | |
- name: "test imports" | |
run: | | |
python -Ic "import openfe_benchmarks" | |
- name: "environment information" | |
run: | | |
mamba info -a | |
mamba list | |
- name: "run tests" | |
run: | | |
pytest -n auto -v --nbval-lax --cov=openfe_benchmarks --cov-report=xml openfe_benchmarks/tests/ | |
- name: "codecov" | |
if: "github.event != 'schedule'" | |
uses: codecov/codecov-action@v2 | |
with: | |
file: coverage.xml | |
fail_ci_if_error: True | |
verbose: True |