Skip to content

Commit

Permalink
fix: env variables seem poorly supported, removed that
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioseel committed Oct 10, 2024
1 parent 2840e46 commit 70229c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/code_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,15 @@ on:
branches:
- main

env:
singularity_image: oras://ghcr.io/berenslab/retinal-rl:singularity-image-latest
sif_file: retinal-rl_singularity-image-latest.sif

jobs:
init:
uses: ./.github/workflows/setup.yml
with:
singularity_image: ${{ env.singularity_image }}
singularity_image: oras://ghcr.io/berenslab/retinal-rl:singularity-image-latest

lint:
needs: init
runs-on: ubuntu-latest
steps:
- name: Run Pylint
run: singularity exec ${{ env.sif_file }} pylint $(git diff --name-only origin/master HEAD -- '*.py')
run: singularity exec retinal-rl_singularity-image-latest.sif pylint $(git diff --name-only origin/master HEAD -- '*.py')
8 changes: 2 additions & 6 deletions .github/workflows/config_scan.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
name: Scan Configs
on: [pull_request,workflow_dispatch]

env:
singularity_image: oras://ghcr.io/berenslab/retinal-rl:singularity-image-latest
sif_file: retinal-rl_singularity-image-latest.sif

jobs:
init:
uses: ./.github/workflows/setup.yml
with:
singularity_image: ${{ env.singularity_image }}
singularity_image: oras://ghcr.io/berenslab/retinal-rl:singularity-image-latest

scan:
needs: init
runs-on: ubuntu-latest
steps:
- name: Scan classification config
run: singularity exec ${{ env.sif_file }} python main.py -m +experiment=cifar10-class-recon command=scan system.device=cpu
run: singularity exec retinal-rl_singularity-image-latest.sif python main.py -m +experiment=cifar10-class-recon command=scan system.device=cpu

0 comments on commit 70229c3

Please sign in to comment.