File tree Expand file tree Collapse file tree 8 files changed +531
-88
lines changed Expand file tree Collapse file tree 8 files changed +531
-88
lines changed Original file line number Diff line number Diff line change 85
85
sudo cmake --install . --config Release
86
86
87
87
- name : Build with SDL3
88
- run : >
89
- python3 -m pip install . -v -Csetup-args=-Dsdl_api=3
90
- -Csetup-args=-Dimage=disabled
91
- -Csetup-args=-Dmixer=disabled
92
- -Csetup-args=-Dfont=disabled
88
+ run : python3 dev.py build --sdl3
93
89
94
90
# - name: Run tests
95
91
# env:
Original file line number Diff line number Diff line change @@ -61,22 +61,17 @@ jobs:
61
61
- uses : actions/checkout@v4.2.2
62
62
63
63
- name : Install deps
64
- # install numpy from pip and not apt because the one from pip is newer,
65
- # and has typestubs
66
64
# https://github.com/actions/runner-images/issues/7192
67
65
# https://github.com/orgs/community/discussions/47863
68
66
run : |
69
67
sudo apt-get update --fix-missing
70
68
sudo apt-get install lcov -y
71
69
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libfreetype6-dev libportmidi-dev python3-dev -y
72
- pip3 install --upgrade pip
73
- pip3 install meson-python ninja cython "sphinx<=7.2.6" # because we are doing --no-build-isolation
74
- pip3 install numpy>=1.21.0
75
70
76
71
- name : Build with coverage hooks and install
77
72
id : build
78
73
run : |
79
- pip3 install -e . --no- build-isolation -Cbuild-dir=./.mesonpy-rel -Csetup-args=-Dcoverage=true
74
+ python3 dev.py build --coverage
80
75
81
76
- name : Run tests
82
77
env :
Original file line number Diff line number Diff line change 48
48
strategy :
49
49
fail-fast : false # if a particular matrix build fails, don't skip the rest
50
50
matrix :
51
- os : [ubuntu-24.04, ubuntu- 22.04]
51
+ os : [ubuntu-22.04]
52
52
53
53
env :
54
54
# Pip now forces us to either make a venv or set this flag, so we will do
89
89
90
90
# We upload the generated files under github actions assets
91
91
- name : Upload sdist
92
- if : matrix.os == 'ubuntu-24.04' # upload sdist only once
93
92
uses : actions/upload-artifact@v4
94
93
with :
95
94
name : pygame-wheels-sdist
Original file line number Diff line number Diff line change
1
+ name : python3 dev.py all
2
+
3
+ # Run CI on changes to main branch, or any PR to main. Do not run CI on
4
+ # any other branch.
5
+ # Run on changes to all files.
6
+ on :
7
+ push :
8
+ branches : main
9
+
10
+ pull_request :
11
+ branches : main
12
+
13
+ concurrency :
14
+ group : ${{ github.workflow }}-${{ github.ref }}-dev-check
15
+ cancel-in-progress : true
16
+
17
+ jobs :
18
+ dev-check :
19
+ runs-on : ubuntu-24.04
20
+
21
+ env :
22
+ # Pip now forces us to either make a venv or set this flag, so we will do
23
+ # this
24
+ PIP_BREAK_SYSTEM_PACKAGES : 1
25
+
26
+ # We are using dependencies installed from apt
27
+ PG_DEPS_FROM_SYSTEM : 1
28
+
29
+ # environment variables to set while testing
30
+ SDL_VIDEODRIVER : " dummy"
31
+ SDL_AUDIODRIVER : " disk"
32
+
33
+ steps :
34
+ - uses : actions/checkout@v4.2.2
35
+
36
+ - name : Install deps
37
+ run : |
38
+ sudo apt-get update --fix-missing
39
+ sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libfreetype6-dev libportmidi-dev python3-dev
40
+
41
+ - name : Check dev.py all
42
+ run : python3 dev.py all
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments