88
99jobs :
1010 test :
11- name : ${{ matrix.os }}, py-${{ matrix.python_version }}
11+ name : test ( ${{ matrix.os }}, py-${{ matrix.python_version }})
1212 runs-on : ${{ matrix.os }}
1313 strategy :
1414 fail-fast : false
@@ -44,29 +44,17 @@ jobs:
4444 - name : Install APT dependencies
4545 if : " startsWith(runner.os, 'Linux')"
4646 run : |
47- # update archive links
48- sudo apt-get update
49- # xvfb is a dependency to create a virtual display
50- # libgtk-3-dev is a requirement for wxPython
51- # freeglut3-dev is a requirement for a wxPython dependency
52- sudo apt-get -y install xvfb libgtk-3-dev freeglut3-dev
47+ make install-deps-apt
48+ - name : Upgrade pip
49+ run : |
50+ python -m pip install --upgrade pip wheel
5351 - name : Install Linux dependencies
5452 if : " startsWith(runner.os, 'Linux')"
5553 run : |
56- python -m pip install --upgrade pip wheel
57-
58- # Install wxPython wheels since they are distribution-specific and therefore not on PyPI
59- # See: https://wxpython.org/pages/downloads/index.html
60- pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04 wxPython
61-
62- pip install .
63-
64- - name : Install MacOS/Windows dependencies
54+ make install-deps-wxpython
55+ - name : Install dependencies
6556 run : |
66- python -m pip install --upgrade pip wheel
67- pip install .
68- pip install -U psychtoolbox # JG_ADD
69- # EB: needed?
57+ make build
7058 - name : Run eegnb install test
7159 shell : bash
7260 run : |
8371 Xvfb :0 -screen 0 1024x768x24 -ac +extension GLX +render -noreset &> xvfb.log &
8472 export DISPLAY=:0
8573 fi
86- pytest
74+ make test
8775
8876 typecheck :
77+ name : typecheck (${{ matrix.os }}, py-${{ matrix.python_version }})
8978 runs-on : ${{ matrix.os }}
9079 strategy :
9180 fail-fast : false
@@ -102,27 +91,17 @@ jobs:
10291 - name : Install APT dependencies
10392 if : " startsWith(runner.os, 'Linux')"
10493 run : |
105- # update archive links
106- sudo apt-get update
107- # xvfb is a dependency to create a virtual display
108- # libgtk-3-dev is a requirement for wxPython
109- # freeglut3-dev is a requirement for a wxPython dependency
110- sudo apt-get -y install xvfb libgtk-3-dev freeglut3-dev
94+ make install-deps-apt
95+ - name : Upgrade pip
96+ run : |
97+ python -m pip install --upgrade pip wheel
11198 - name : Install Linux dependencies
11299 if : " startsWith(runner.os, 'Linux')"
113100 run : |
114- python -m pip install --upgrade pip wheel
115-
116- # Install wxPython wheels since they are distribution-specific and therefore not on PyPI
117- # See: https://wxpython.org/pages/downloads/index.html
118- pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04 wxPython
119-
120- pip install .
121- - name : Install MacOS/Windows dependencies
101+ make install-deps-wxpython
102+ - name : Install dependencies
122103 run : |
123- python -m pip install --upgrade pip wheel
124- pip install .
104+ make build
125105 - name : Typecheck
126106 run : |
127- # Exclude visual_cueing due to errors
128- python -m mypy --exclude 'examples/visual_cueing'
107+ make typecheck
0 commit comments