Update pre-commit hook charliermarsh/ruff-pre-commit to v0.1.14 #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: On pull request workflows requiring the CNeuroMax image | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
on-pr-with-image: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout the GitHub repo | |
uses: actions/checkout@v4 | |
- name: Build the tentative CNeuroMax image | |
run: podman build -t cneuromod/cneuromax:test -f Dockerfile . | |
- name: Build the documentation | |
run: > | |
podman run --rm -v $PWD:/cneuromax -w /cneuromax | |
cneuromod/cneuromax:test | |
sphinx-build -b html ./docs/ ./docs/build/ | |
- name: Run mypy | |
run: > | |
podman run --rm -v $PWD:/cneuromax -w /cneuromax | |
cneuromod/cneuromax:test | |
mypy --config-file=pyproject.toml cneuromax | |
- name: Run pytest | |
run: > | |
podman run --rm -v $PWD:/cneuromax -w /cneuromax | |
cneuromod/cneuromax:test | |
pytest --cov cneuromax |