forked from qtile/qtile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding pre-release versions of python lets us identify issues in advance.
- Loading branch information
1 parent
ff90e5c
commit 91c06dc
Showing
2 changed files
with
53 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Test pre-release versions of python | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-24.04 | ||
name: "python ${{ matrix.python-version }} on ${{ matrix.backend }}" | ||
continue-on-error: true | ||
strategy: | ||
matrix: | ||
# If you change one of these, be sure to update: | ||
# - /tox.ini:[gh-actions] | ||
# - /setup.cfg:[mypy] | ||
# If adding new python versions, consider also updating | ||
# python version in .readthedocs.yaml | ||
# TODO: Add back pypy here and in release.yml once: | ||
# https://github.com/pypy/pypy/issues/4956 is resolved | ||
python-version: ['3.13'] | ||
backend: ['x11', 'wayland'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
allow-prereleases: true | ||
- name: Install dependencies | ||
run: | | ||
sudo apt update | ||
# Any Wayland-specific Ubuntu system dependencies should be installed from ./scripts/ubuntu_wayland_setup | ||
sudo apt install --no-install-recommends \ | ||
libdbus-1-dev libgirepository1.0-dev gir1.2-gtk-3.0 gir1.2-notify-0.7 gir1.2-gudev-1.0 graphviz \ | ||
imagemagick git xserver-xephyr xterm xvfb dbus-x11 libnotify-bin \ | ||
libxcb-composite0-dev libxcb-icccm4-dev libxcb-res0-dev libxcb-render0-dev libxcb-res0-dev \ | ||
libxcb-xfixes0-dev vlc volumeicon-alsa libxkbcommon-dev python-gi-dev tox libcairo2-dev | ||
pip -q install --break-system-packages tox-gh-actions | ||
- name: Install wayland | ||
if: ${{ matrix.backend == 'wayland' }} | ||
run: bash -x ./scripts/ubuntu_wayland_setup | ||
- name: Run Tests | ||
run: | | ||
[ "$(grep -c -P '\t' CHANGELOG)" = "0" ] | ||
tox | ||
env: | ||
BACKEND: ${{ matrix.backend }} |
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