Skip to content

Add HPC workflow for fMRIPrep OpenNeuro cohort #9

Add HPC workflow for fMRIPrep OpenNeuro cohort

Add HPC workflow for fMRIPrep OpenNeuro cohort #9

Workflow file for this run

name: test-and-coverage
on:
pull_request:
push:
branches:
- main
- master
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-core.txt
pip install pytest pytest-cov pytest-mock pip-audit
- name: Audit dependencies
run: python -m pip_audit
- name: Run tests with coverage
run: pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true