Skip to content

Start mapping of CAMS species units, related to #728 #72

Start mapping of CAMS species units, related to #728

Start mapping of CAMS species units, related to #728 #72

Workflow file for this run

name: CI
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: conda env update --file environment.yaml
- name: Test with pytest
run: |
conda run -n providentia-env_v3.0.0 coverage run -m pytest tests
conda run -n providentia-env_v3.0.0 coverage report -i -m
- name: Generate coverage badge
run: conda run -n providentia-env_v3.0.0 coverage-badge > coverage.svg
- name: Update coverage badge
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add coverage.svg || echo "No coverage.svg to add"
git diff --cached --quiet || (
git commit -m "Update coverage badge"
git push
)