55
66on :
77 push :
8- branches : [ master ]
8+ branches : [master]
99 pull_request :
10- branches : [ master ]
10+ branches : [master]
1111
1212jobs :
1313 build :
@@ -23,38 +23,40 @@ jobs:
2323 python-version : ["3.8", "3.9", "3.10", "3.11"]
2424
2525 steps :
26- - uses : actions/checkout@v3
27- - name : Set up Python ${{ matrix.python-version }}
28- uses : actions/setup-python@v4
29- with :
30- python-version : ${{ matrix.python-version }}
31- - name : Install dependencies
32- run : |
33- python -m pip install --upgrade pip
34- # cpu version of pytorch
35- pip install torch==2.3.1 --index-url https://download.pytorch.org/whl/cpu
26+ - uses : actions/checkout@v3
27+ - name : Set up Python ${{ matrix.python-version }}
28+ uses : actions/setup-python@v4
29+ with :
30+ python-version : ${{ matrix.python-version }}
31+ - name : Install dependencies
32+ run : |
33+ python -m pip install --upgrade pip
34+ # cpu version of pytorch
35+ pip install torch==2.3.1 --index-url https://download.pytorch.org/whl/cpu
3636
37- # Install Atari Roms
38- pip install autorom
39- wget https://gist.githubusercontent.com/jjshoots/61b22aefce4456920ba99f2c36906eda/raw/00046ac3403768bfe45857610a3d333b8e35e026/Roms.tar.gz.b64
40- base64 Roms.tar.gz.b64 --decode &> Roms.tar.gz
41- AutoROM --accept-license --source-file Roms.tar.gz
37+ # Install Atari Roms
38+ pip install autorom
39+ wget https://gist.githubusercontent.com/jjshoots/61b22aefce4456920ba99f2c36906eda/raw/00046ac3403768bfe45857610a3d333b8e35e026/Roms.tar.gz.b64
40+ base64 Roms.tar.gz.b64 --decode &> Roms.tar.gz
41+ AutoROM --accept-license --source-file Roms.tar.gz
4242
43- pip install .[extra_no_roms,tests,docs]
44- # Use headless version
45- pip install opencv-python-headless
46- - name : Lint with ruff
47- run : |
48- make lint
49- - name : Build the doc
50- run : |
51- make doc
52- - name : Check codestyle
53- run : |
54- make check-codestyle
55- - name : Type check
56- run : |
57- make type
58- - name : Test with pytest
59- run : |
60- make pytest
43+ pip install .[extra_no_roms,tests,docs]
44+ # Use headless version
45+ pip install opencv-python-headless
46+ - name : Lint with ruff
47+ run : |
48+ make lint
49+ - name : Build the doc
50+ run : |
51+ make doc
52+ - name : Check codestyle
53+ run : |
54+ make check-codestyle
55+ - name : Type check
56+ run : |
57+ make type
58+ # Do not run for python 3.8 (mypy internal error)
59+ if : matrix.python-version != '3.8'
60+ - name : Test with pytest
61+ run : |
62+ make pytest
0 commit comments