Skip to content

Docs

Docs #164

Workflow file for this run

name: "CI"
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
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
steps:
- uses: actions/checkout@v2
- 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: kartograf
- name: "Install"
run: pip install --no-deps -e .
- name: "Test imports"
run: |
# if we add more to this, consider changing to for + env vars
python -Ic "import kartograf"
- name: "Environment Information"
run: |
mamba info -a
mamba list
- name: "Run tests"
run: |
pytest -n 2 -v --cov=kartograf --cov-report=xml
- name: codecov
if: ${{ github.repository == 'OpenFreeEnergy/kartograf' && github.event != 'schedule'}}
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
env_vars: OS,PYTHON
fail_ci_if_error: True
verbose: True