Skip to content

Update check_compatibility_biapy.yaml #4

Update check_compatibility_biapy.yaml

Update check_compatibility_biapy.yaml #4

name: check compatibility biapy
concurrency: biapy
on:
push:
branches:
- main
paths:
- .github/workflows/check_compatibility_biapy.yaml
- scripts/check_compatibility_biapy.py
workflow_dispatch:
schedule:
- cron: 0 1 * * * # update compatibility once a day
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip" # caching pip dependencies
- name: Installing BiaPy dependencies
run: pip install biapy
- 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/cpu
- name: Installing last packages that rely on the Pytorch installation
run: pip install timm torchmetrics[image] pytorch-msssim
- name: Install backoffice
run: pip install .
- run: python scripts/check_compatibility_biapy.py