@@ -22,10 +22,10 @@ jobs:
22
22
fail-fast : false
23
23
steps :
24
24
- uses : actions/checkout@v3
25
- - name : Set up Python 3.9
25
+ - name : Set up Python 3.11
26
26
uses : actions/setup-python@v4
27
27
with :
28
- python-version : 3.9
28
+ python-version : 3.11
29
29
- name : Install llvmpipe and lavapipe for offscreen canvas, and git lfs
30
30
run : |
31
31
sudo apt-get update -y -qq
36
36
sudo apt-get install ./pandoc-3.1.4-1-amd64.deb
37
37
- name : Install dev dependencies
38
38
run : |
39
- python -m pip install --upgrade pip
40
- # remove pygfx from requirements , we install a specific commit of pygfx since both fpl and pygfx are fast evolving
39
+ python -m pip install --upgrade pip setuptools
40
+ # remove pygfx from install_requires , we install using pygfx@main
41
41
sed -i "/pygfx/d" ./setup.py
42
42
pip install git+https://github.com/pygfx/pygfx.git@main
43
43
pip install -e ".[notebook,docs,tests]"
46
46
cd docs
47
47
make html SPHINXOPTS="-W --keep-going"
48
48
49
- test-build :
50
- name : Test examples
49
+ test-build-full :
50
+ name : Test examples, env with notebook and glfw
51
51
runs-on : ubuntu-latest
52
52
if : ${{ !github.event.pull_request.draft }}
53
53
strategy :
60
60
pyversion : ' 3.10'
61
61
- name : Test py311
62
62
pyversion : ' 3.11'
63
+ - name : Test py312
64
+ pyversion : ' 3.12'
63
65
steps :
64
66
- name : Install git-lfs
65
67
run : |
75
77
sudo apt-get install --no-install-recommends -y libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers git-lfs
76
78
- name : Install dev dependencies
77
79
run : |
78
- python -m pip install --upgrade pip
79
- # remove pygfx from requirements , we install a specific commit of pygfx since both fpl and pygfx are fast evolving
80
+ python -m pip install --upgrade pip setuptools
81
+ # remove pygfx from install_requires , we install using pygfx@main
80
82
sed -i "/pygfx/d" ./setup.py
81
83
pip install git+https://github.com/pygfx/pygfx.git@main
82
84
pip install -e ".["tests"]"
@@ -100,3 +102,58 @@ jobs:
100
102
path : |
101
103
examples/desktop/diffs
102
104
examples/notebooks/diffs
105
+
106
+ test-build-desktop :
107
+ name : Test examples, env with only glfw
108
+ runs-on : ubuntu-latest
109
+ if : ${{ !github.event.pull_request.draft }}
110
+ strategy :
111
+ fail-fast : false
112
+ matrix :
113
+ include :
114
+ - name : Test py39
115
+ pyversion : ' 3.9'
116
+ - name : Test py310
117
+ pyversion : ' 3.10'
118
+ - name : Test py311
119
+ pyversion : ' 3.11'
120
+ - name : Test py312
121
+ pyversion : ' 3.12'
122
+ steps :
123
+ - name : Install git-lfs
124
+ run : |
125
+ sudo apt install --no-install-recommends -y git-lfs
126
+ - uses : actions/checkout@v3
127
+ - name : Set up Python
128
+ uses : actions/setup-python@v3
129
+ with :
130
+ python-version : ${{ matrix.pyversion }}
131
+ - name : Install llvmpipe and lavapipe for offscreen canvas
132
+ run : |
133
+ sudo apt-get update -y -qq
134
+ sudo apt-get install --no-install-recommends -y libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers git-lfs
135
+ - name : Install dev dependencies
136
+ run : |
137
+ python -m pip install --upgrade pip setuptools
138
+ # remove pygfx from install_requires, we install using pygfx@main
139
+ sed -i "/pygfx/d" ./setup.py
140
+ pip install git+https://github.com/pygfx/pygfx.git@main
141
+ pip install -e ".["tests-desktop"]"
142
+ - name : Show wgpu backend
143
+ run :
144
+ python -c "from examples.tests.testutils import wgpu_backend; print(wgpu_backend)"
145
+ - name : fetch git lfs files
146
+ run : |
147
+ git lfs fetch --all
148
+ git lfs pull
149
+ - name : Test examples
150
+ env :
151
+ PYGFX_EXPECT_LAVAPIPE : true
152
+ run : |
153
+ pytest -v examples
154
+ - uses : actions/upload-artifact@v3
155
+ if : ${{ failure() }}
156
+ with :
157
+ name : screenshot-diffs
158
+ path : |
159
+ examples/desktop/diffs
0 commit comments