Skip to content

[pre-commit.ci] pre-commit autoupdate (#237) #370

[pre-commit.ci] pre-commit autoupdate (#237)

[pre-commit.ci] pre-commit autoupdate (#237) #370

Workflow file for this run

---
name: test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [main]
pull_request:
branches: ['*']
jobs:
unit_test:
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y git-annex
python -m pip install --upgrade pip
- name: Install
run: pip install .[test]
- name: Post-install
run: |
git config --global --add user.name "Ford Escort"
git config --global --add user.email [email protected]
- name: Check set up
run: |
datalad wtf
cohort_creator --version
- name: unit tests
run: python -m pytest tests --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
name: codecov-umbrella
fail_ci_if_error: false