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

Cleaning Github Actions: Merge the quick model test and predict output workflows #1235

Closed
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
59 changes: 0 additions & 59 deletions .github/workflows/predict-model-input.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Quick model test (Manual)
name: Quick model test (Manual) and Ersilia model output prediction (Manual)
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -37,25 +37,30 @@ jobs:
conda install git-lfs -c conda-forge
git-lfs install
conda install gh -c conda-forge


- name: Install ersilia
run: |
source activate
python --version
echo "After conda init"
conda init
python -m pip install -e .[test]
python -m pip install -e .


- name: Predict output
run: |
source activate
echo "Sample model id selected: $MODEL_ID"
ersilia -v fetch $MODEL_ID
echo "Serving model: $MODEL_ID"
ersilia -v serve $MODEL_ID
echo "$MODEL_ID successfully fetched and served"
ersilia sample -n 5 -f input.csv
ersilia -v api -i input.csv
ersilia close


- name: Upload log output
if: ${{ failure() }}
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # pin@v4.3.3
Expand Down