Skip to content

Commit

Permalink
bugfix test model image
Browse files Browse the repository at this point in the history
  • Loading branch information
GemmaTuron committed Mar 3, 2025
1 parent ab9d71d commit 6c33a63
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/test-model-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,21 @@ jobs:

- name: Install dependencies
run: |
conda run -n base git-lfs install
conda run -n base conda install gh -c conda-forge
conda run -n base python -m pip install 'git+https://github.com/ersilia-os/ersilia.git#egg=ersilia[test]'
conda run -n base ersilia --version
- name: Fetch model and run #TODO change for test command
env:
MODEL_ID: ${{ inputs.repo_name }}
run: |
conda run -n base bash -c "
ersilia -v fetch $MODEL_ID --from_dockerhub --version dev-arm64 &&
ersilia serve $MODEL_ID &&
ersilia example -f input.csv -n 3 &&
ersilia run -i input.csv -o output.csv &&
ersilia close &&
ersilia delete $MODEL_ID &&
head output.csv
"
set -x
conda run -n base ersilia -v fetch $MODEL_ID --from_dockerhub --version dev-arm64
conda run -n base ersilia serve $MODEL_ID
conda run -n base ersilia example -f input.csv -n 3
conda run -n base ersilia run -i input.csv -o output.csv
conda run -n base ersilia close
conda run -n base ersilia delete $MODEL_ID
conda run -n base head output.csv
retag-image:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6c33a63

Please sign in to comment.