-
Notifications
You must be signed in to change notification settings - Fork 36
37 lines (32 loc) · 963 Bytes
/
train.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
name: GNS Train and Test
on:
workflow_run:
workflows: ["Build and Push to GHCR"]
types:
- completed
push:
pull_request:
jobs:
gns:
runs-on: ubuntu-latest
container:
image: ghcr.io/geoelements/gns:config
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: PyTest
run: |
pytest test/
- name: Train GNS
if: github.event_name != 'workflow_run'
run: |
TMP_DIR="../gns-sample"
DATASET_NAME="WaterDropSample"
git clone https://github.com/geoelements/gns-sample ../gns-sample
mkdir -p ${TMP_DIR}/${DATASET_NAME}/models/
mkdir -p ${TMP_DIR}/${DATASET_NAME}/rollout/
DATA_PATH="${TMP_DIR}/${DATASET_NAME}/dataset/"
MODEL_PATH="${TMP_DIR}/${DATASET_NAME}/models/"
ROLLOUT_PATH="${TMP_DIR}/${DATASET_NAME}/rollout/"
echo "Test paths: ${DATA_PATH} ${MODEL_PATH}"
python -m gns.train