Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CAREamics compatibility check workflow #117

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now have a conda-forge careamics package, so this step could be removed and careamics added to the previous step!

- 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