-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.42 KB
/
checks.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
name: checks
on: [push]
jobs:
integration:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install '.[cpu]' --extra-index-url https://download.pytorch.org/whl/cpu
- name: Display help from training scripts
run: |
train-aae --help
train-sae --help
- name: Run simple training
run: |
train-aae --epochs 1 --ckpt-dir ./pt-aae
test -f pt-aae/encoder.safetensors
test -f pt-aae/decoder.safetensors
test -f pt-aae/discriminator.safetensors
train-sae --epochs 1 --ckpt-dir ./pt-sae
test -f pt-sae/encoder.safetensors
test -f pt-sae/decoder.safetensors
tox:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tox
run: |
tox