Skip to content

Update dependency ruff to v0.1.13 #366

Update dependency ruff to v0.1.13

Update dependency ruff to v0.1.13 #366

# Runs pytest & mypy (type checking and unit tests)
name: Typecheck & Unittest
on:
pull_request:
branches: [main]
paths:
- cneuromax/**
- pyproject.toml
- .github/workflows/typecheck-unittest.yaml
push:
branches: [main]
paths:
- cneuromax/**
- pyproject.toml
- .github/workflows/typecheck-unittest.yaml
permissions:
contents: read
jobs:
typecheck-unittest:
runs-on: self-hosted
steps:
- name: Pull the container image
run: podman pull docker.io/cneuromod/cneuromax:latest
- name: Checkout the GitHub repo
uses: actions/checkout@v4
- name: Run mypy
run: >
podman run --rm -v $PWD:/cneuromax -w /cneuromax
docker.io/cneuromod/cneuromax:latest
mypy --config-file=pyproject.toml cneuromax
- name: Run pytest
run: >
podman run --rm -v $PWD:/cneuromax -w /cneuromax
docker.io/cneuromod/cneuromax:latest
pytest --cov cneuromax
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}