Skip to content

Commit

Permalink
add careamcis compatibilty check workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Dec 2, 2024
1 parent df2523b commit 5a86585
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/check_compatibility_careamics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: check compatibility careamics

concurrency: careamics

on:
push:
branches:
- main
paths:
- .github/workflows/check_compatibility_careamics.yaml
- scripts/check_compatibility_careamics.py
workflow_dispatch:
schedule:
- cron: 0 1 * * * # update compatibility once a day

jobs:
run:
runs-on: ubuntu-latest
environment: 'production'
steps:
- uses: actions/checkout@v4
- name: Setup careamics env
uses: mamba-org/setup-micromamba@v1
with:
generate-run-shell: false
cache-downloads: true
environment-name: careamics
condarc: |
channels:
- conda-forge
- pytorch
create-args: >-
pytorch
torchvision
cpuonly
python=3.10
numpy
pip
- run: pip install careamics
- name: Install backoffice
run: pip install .
- run: python scripts/check_compatibility_careamics.py
env:
S3_HOST: ${{vars.S3_HOST}}
S3_BUCKET: ${{vars.S3_BUCKET}}
S3_FOLDER: ${{vars.S3_FOLDER}}
S3_ACCESS_KEY_ID: ${{secrets.S3_ACCESS_KEY_ID}}
S3_SECRET_ACCESS_KEY: ${{secrets.S3_SECRET_ACCESS_KEY}}
RUN_URL: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}
1 change: 1 addition & 0 deletions .github/workflows/generate_collection_json.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
workflows:
- 'check compatibility ilastik'
- 'check compatibility biapy'
- 'check compatibility careamics'
types: [completed]
branches: [main]
push:
Expand Down

0 comments on commit 5a86585

Please sign in to comment.