Code consistency #22
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
# Checks BiaPy code consistency | |
name: Code consistency | |
# Once a week (on Sunday) | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
run: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
cache: "pip" # caching pip dependencies | |
- name: Installing BiaPy dependencies | |
run: pip install --editable . | |
- name: Installing Pytorch | |
run: pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu118 | |
- name: Installing last packages that rely on the Pytorch installation | |
run: pip install timm torchmetrics[image] pytorch-msssim | |
- name: Installing dependencies for the run_checks.py script | |
run: pip install gdown | |
- name: Checking BiaPy code consistency | |
run: | | |
mkdir biapy_checks | |
python -u biapy/utils/scripts/run_checks.py --out_folder biapy_checks --gpus "0,1" |