1+ name : FastGen CI
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ env :
10+ WANDB_MODE : disabled
11+
12+ jobs :
13+ lint :
14+ runs-on : [FG_Runner]
15+
16+ container :
17+ image : ghcr.io/juliusberner/fastgen:0.0.3c
18+ options : --entrypoint "" --gpus all --shm-size=8g
19+ credentials :
20+ username : ${{ github.actor }}
21+ password : ${{ secrets.GITHUB_TOKEN }}
22+
23+ steps :
24+ - name : Checkout repository
25+ uses : actions/checkout@v4
26+
27+ - name : Restore/Save Cache
28+ uses : actions/cache@v4
29+ with :
30+ path : |
31+ .cache/pip
32+ .mypy_cache
33+ key : ${{ runner.os }}-pip-mypy-${{ github.sha }}
34+ restore-keys : |
35+ ${{ runner.os }}-pip-mypy-
36+
37+ - name : Install linters
38+ run : make install-linters
39+
40+ - name : Run lint
41+ run : make lint
42+
43+ - name : Run mypy
44+ run : make mypy
45+
46+ test :
47+ needs : lint
48+ runs-on : [FG_Runner]
49+
50+ container :
51+ image : ghcr.io/juliusberner/fastgen:0.0.3c
52+ options : --entrypoint "" --gpus all --shm-size=8g
53+ credentials :
54+ username : ${{ github.actor }}
55+ password : ${{ secrets.GITHUB_TOKEN }}
56+
57+ steps :
58+ - name : Checkout repository
59+ uses : actions/checkout@v4
60+
61+ - name : Restore/Save Cache
62+ uses : actions/cache@v4
63+ with :
64+ path : |
65+ .cache/pip
66+ .mypy_cache
67+ key : ${{ runner.os }}-pip-mypy-${{ github.sha }}
68+ restore-keys : |
69+ ${{ runner.os }}-pip-mypy-
70+
71+ - name : Increase file descriptor limit
72+ run : ulimit -n 4096 || echo "Could not increase file descriptor limit"
73+
74+ - name : Run Pytest
75+ run : make pytest
76+
77+ install_fastgen_package :
78+ needs : test
79+ runs-on : [FG_Runner]
80+
81+ container :
82+ image : ghcr.io/juliusberner/fastgen:0.0.3c
83+ options : --entrypoint "" --gpus all --shm-size=8g
84+ credentials :
85+ username : ${{ github.actor }}
86+ password : ${{ secrets.GITHUB_TOKEN }}
87+
88+ steps :
89+ - name : Checkout repository
90+ uses : actions/checkout@v4
91+
92+ - name : Restore/Save Cache
93+ uses : actions/cache@v4
94+ with :
95+ path : |
96+ .cache/pip
97+ .mypy_cache
98+ key : ${{ runner.os }}-pip-mypy-${{ github.sha }}
99+ restore-keys : |
100+ ${{ runner.os }}-pip-mypy-
101+
102+ - name : Install fastgen
103+ run : make install-fastgen
0 commit comments