Skip to content

Tidy notebooks folder #1042

Tidy notebooks folder

Tidy notebooks folder #1042

Workflow file for this run

name: CodeCov
on:
push:
branches:
- main
pull_request:
jobs:
run:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
activate-environment: nhp
use-mamba: true
- name: Cache Conda env
uses: actions/cache@v4
id: cache
with:
path: ${{ env.CONDA }}/envs
key: conda-${{ hashFiles('environment.yml') }}-${{ env.CACHE_NUMBER }}
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 0
- name: Update environment
run: mamba env update -n nhp -f environment.yml
if: steps.cache.outputs.cache-hit != 'true'
- name: Generate Report
run: pytest --cov=. tests/ --ignore=tests --cov-report xml:coverage.xml
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}