-
Notifications
You must be signed in to change notification settings - Fork 15
73 lines (56 loc) · 2.07 KB
/
test.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
name: slippi-ai test cases
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.9', '3.10']
os: ['ubuntu-latest']
steps:
- uses: actions/checkout@v4
# See https://github.com/pypa/pip/issues/11281
- name: Install
run: |
pip install tensorflow ray
pip install -r requirements.txt
pip install .
- name: Run Unit Tests
run: |
python tests/networks_test.py
python tests/rl_lib_test.py
python tests/unit_tests.py
- name: Test Imitation
run: ./tests/training_test.sh
- name: Test Imitation with Restore
run: ./tests/training_test.sh --config.restore_pickle=data/checkpoints/demo
- name: Test RL with Fake Data
run: ./tests/train_rl.sh
- name: Test RL with Fake Data + Restore
run: ./tests/train_rl.sh --config.teacher="" --config.restore=data/checkpoints/rl_demo
- name: Test train_two with Fake Data
run: ./tests/train_two.sh
- name: Download ExiAI Dolphin
# TODO: specify release version in repo?
run: |
curl -L https://github.com/vladfi1/slippi-Ishiiruka/releases/download/exi-ai-0.1.0/Slippi_Online-x86_64-ExiAI.AppImage -o dolphin
chmod +x dolphin
- name: Install dolphin dependencies
run: sudo apt install -y libfuse2 libegl1
- name: Cache the SSBM iso
uses: actions/cache@v4
id: cache-iso # give it a name for checking the cache hit-or-not
with:
path: SSBM.iso
key: ssbm-iso
- name: Download the SSBM iso
if: steps.cache-iso.outputs.cache-hit != 'true'
env:
SSBM_ISO_DRIVE_ID: ${{ secrets.SSBM_ISO_DRIVE_ID }}
run: |
pip install gdown
gdown "https://drive.google.com/uc?id=$SSBM_ISO_DRIVE_ID" -O SSBM.iso
- name: Test RL with Dolphin
run: ./tests/train_rl.sh --config.dolphin.path=./dolphin --config.dolphin.iso=SSBM.iso
- name: Test train_two with Dolphin
run: ./tests/train_two.sh --config.dolphin.path=./dolphin --config.dolphin.iso=SSBM.iso