-
-
Notifications
You must be signed in to change notification settings - Fork 151
76 lines (65 loc) · 2.01 KB
/
pr_check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Deploy and test ersilia on PR
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # [email protected]
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: "3.10.10"
- name: Install dependencies
run: |
conda init
conda install git-lfs -c conda-forge
git-lfs install
conda install gh -c conda-forge
- name: Install Ersilia
run: |
python --version
echo "After conda init"
conda init
python -m pip install -e .[test]
- name: Run Ruff
run: ruff check --output-format=github .
- name: Hub catalog
run: |
ersilia catalog --hub
- name: Fetch model from GitHub
run: |
ersilia -v fetch molecular-weight --from_github
echo "Serving molecular-weight model."
ersilia serve molecular-weight --track
ersilia info
ersilia run -i "CC(=O)OC1=CC=CC=C1C(=O)O" | grep "180.15899"
ersilia close
- name: Fetch model from S3
run: |
ersilia -v fetch molecular-weight --from_s3
echo "Serving molecular-weight model."
ersilia serve molecular-weight --track
ersilia info
ersilia run -i "CC(=O)OC1=CC=CC=C1C(=O)O" | grep "180.15899"
ersilia close
- name: Fetch model from DockerHub
run: |
ersilia -v fetch molecular-weight --from_dockerhub
echo "Serving molecular-weight model." --track
ersilia serve molecular-weight
ersilia info
ersilia run -i "CC(=O)OC1=CC=CC=C1C(=O)O" | grep "180.15899"
ersilia close
- name: Local catalog
run: |
ersilia catalog --local