forked from ministry-of-silly-code/experiment_buddy
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.26 KB
/
test_local.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
name: local deploy test
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
jobs:
test_pull_request:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.GIT_SSH_KEY }}
name: id_rsa # optional
known_hosts: ${{ secrets.KNOWN_HOSTS }}
config: ${{ secrets.SSH_CONFIG }} # ssh_config; optional
if_key_exists: replace # replace / ignore / fail; optional (defaults to fail)
- run: |
set -e
set -x
export GIT_MAIL=${{ secrets.GIT_MAIL }}
export GIT_NAME=${{ secrets.GIT_NAME }}
export TERM=xterm
export WANDB_API_KEY=${{ secrets.WANDB_API_KEY }}
git config --global user.email "$GIT_MAIL"
git config --global user.name "$GIT_NAME"
git clone git@github.com:ministry-of-silly-code/examples.git examples_local
python3 -m venv venv
source venv/bin/activate
cd examples_local
pip install -r requirements.txt
echo "GA-run-local" | python mnist_classifier.py