Skip to content

Commit e098ca9

Browse files
committed
Generate datasets and models in CI
1 parent 2dc1ee5 commit e098ca9

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/cml.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,21 @@ jobs:
2121
with:
2222
python-version-file: ".python-version"
2323

24+
- name: Generate datasets and models
25+
run: |
26+
# Supervised game: Generate datasets and models
27+
uv run proteingym-base list-datasets datasets | jq 'map(select(.name == "charge_ladder" or .name == "NEIME_2019")) | map({name: .name, input_filename: .input_filename})' | yq -p json -o json '. = {"datasets": .}' > benchmark/supervised/local/datasets.json
28+
uv run proteingym-base list-models models | jq 'map(select(.name == "pls")) | map({name: .name, input_filename: .input_filename})' | yq -p json -o json '. = {"models": .}' > benchmark/supervised/local/models.json
29+
30+
# Zero-shot game: Generate datasets and models
31+
uv run proteingym-base list-datasets datasets | jq 'map(select(.name == "ranganathan")) | map({name: .name, input_filename: .input_filename})' | yq -p json -o json '. = {"datasets": .}' > benchmark/zero_shot/local/datasets.json
32+
uv run proteingym-base list-models models | jq 'map(select(.name == "esm")) | map({name: .name, input_filename: .input_filename})' | yq -p json -o json '. = {"models": .}' > benchmark/zero_shot/local/models.json
33+
34+
2435
- name: Run model validation
2536
env:
2637
repo_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
2738
run: |
28-
# Configure PAT to git clone the private repo: proteingym-base
29-
git config --global credential.helper store
30-
echo "https://${{ secrets.USERNAME }}:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com" > ~/.git-credentials
31-
uv sync
32-
3339
# Supervised game: Generate datasets and models
3440
uv run proteingym-base list-datasets datasets | jq 'map(select(.name == "charge_ladder" or .name == "NEIME_2019")) | map({name: .name, input_filename: .input_filename})' | yq -p json -o json '. = {"datasets": .}' > benchmark/supervised/local/datasets.json
3541
uv run proteingym-base list-models models | jq 'map(select(.name == "pls")) | map({name: .name, input_filename: .input_filename})' | yq -p json -o json '. = {"models": .}' > benchmark/supervised/local/models.json

0 commit comments

Comments
 (0)