SRT2D repository: SRT 2D PET and SPECT algorithms #443
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: Run pre-commit check | |
on: | |
- push | |
- pull_request | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
name: pre-commit | |
steps: | |
# Step 1: Checkout the code | |
- uses: actions/checkout@v4 | |
# Step 2: Set up Conda environment | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: pre-commit-env | |
environment-file: pre-commit-environment.yml | |
auto-activate-base: false | |
# Step 3: Run pre-commit hooks using the latest version | |
- name: Run pre-commit checks | |
uses: pre-commit/[email protected] | |
with: | |
extra_args: '--all-files' |