-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CI, setup.py and docs to use dev.py
- Loading branch information
Showing
7 changed files
with
50 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,22 +61,17 @@ jobs: | |
- uses: actions/[email protected] | ||
|
||
- name: Install deps | ||
# install numpy from pip and not apt because the one from pip is newer, | ||
# and has typestubs | ||
# https://github.com/actions/runner-images/issues/7192 | ||
# https://github.com/orgs/community/discussions/47863 | ||
run: | | ||
sudo apt-get update --fix-missing | ||
sudo apt-get install lcov -y | ||
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libfreetype6-dev libportmidi-dev python3-dev -y | ||
pip3 install --upgrade pip | ||
pip3 install meson-python ninja cython "sphinx<=7.2.6" # because we are doing --no-build-isolation | ||
pip3 install numpy>=1.21.0 | ||
- name: Build with coverage hooks and install | ||
id: build | ||
run: | | ||
pip3 install -e . --no-build-isolation -Cbuild-dir=./.mesonpy-rel -Csetup-args=-Dcoverage=true | ||
python3 dev.py build --coverage | ||
- name: Run tests | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: python3 dev.py all | ||
|
||
# Run CI on changes to main branch, or any PR to main. Do not run CI on | ||
# any other branch. | ||
# Run on changes to all files. | ||
on: | ||
push: | ||
branches: main | ||
|
||
pull_request: | ||
branches: main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-dev-check | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
dev-check: | ||
runs-on: ubuntu-24.04 | ||
|
||
env: | ||
# Pip now forces us to either make a venv or set this flag, so we will do | ||
# this | ||
PIP_BREAK_SYSTEM_PACKAGES: 1 | ||
|
||
# We are using dependencies installed from apt | ||
PG_DEPS_FROM_SYSTEM: 1 | ||
|
||
# environment variables to set while testing | ||
SDL_VIDEODRIVER: "dummy" | ||
SDL_AUDIODRIVER: "disk" | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Install deps | ||
run: | | ||
sudo apt-get update --fix-missing | ||
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libfreetype6-dev libportmidi-dev python3-dev | ||
- name: Check dev.py all | ||
run: python3 dev.py all |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters