-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade PyQt5, test more Python versions, and macOS arm64.
- Loading branch information
1 parent
2f07fcc
commit 9a0f269
Showing
5 changed files
with
51 additions
and
72 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 |
---|---|---|
|
@@ -11,15 +11,15 @@ jobs: | |
timeout-minutes: 30 | ||
strategy: | ||
matrix: | ||
# macos-13 is x86 and macos-14 is arm64 | ||
os: [ubuntu-20.04, ubuntu-latest, macos-13, windows-2019, windows-latest] | ||
python-version: ['3.5', '3.6', '3.7', '3.8'] | ||
# macos-13 is the last release on x86, and macos-14 is arm64 | ||
os: [ubuntu-20.04, ubuntu-24.04, macos-13, macos-14, windows-2019, windows-latest] | ||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] | ||
exclude: | ||
# Python 3.5 and 3.6 not available in the latest Ubuntu runners | ||
- os: ubuntu-latest | ||
python-version: '3.5' | ||
- os: ubuntu-latest | ||
python-version: '3.6' | ||
# These Python versions are not available in macOS arm64 or Ubuntu 24.04 | ||
- os: macos-14 | ||
python-version: '3.7' | ||
- os: ubuntu-24.04 | ||
python-version: '3.7' | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
name: Test Py ${{ matrix.python-version }} - ${{ matrix.os }} | ||
|
@@ -29,10 +29,6 @@ jobs: | |
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
env: | ||
# Workaround to issue using Python 3.5 | ||
# https://github.com/actions/setup-python/issues/866 | ||
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org" | ||
- name: Display Python info | ||
run: | | ||
python -c "import sys; print(sys.version)" | ||
|
@@ -42,19 +38,14 @@ jobs: | |
pip --version | ||
pip config list | ||
pip freeze | ||
- name: Prepare Ubuntu | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libxkbcommon-x11-0 xvfb | ||
- name: Install Mu dependencies | ||
run: | | ||
pip install .[dev] | ||
pip list | ||
timeout-minutes: 10 | ||
- name: Run tests | ||
if: runner.os == 'Linux' | ||
run: xvfb-run make check | ||
run: QT_QPA_PLATFORM=offscreen python make.py check | ||
timeout-minutes: 5 | ||
- name: Run tests | ||
if: runner.os != 'Linux' | ||
|
@@ -105,7 +96,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
docker-tag: ['stretch-2018-03-13', 'buster-2021-05-28', 'buster-legacy-2023-05-03'] | ||
docker-tag: ['buster-2021-05-28', 'buster-legacy-2023-05-03', 'bullseye-2023-05-03'] | ||
fail-fast: false | ||
services: | ||
rpios: | ||
|
@@ -131,16 +122,6 @@ jobs: | |
git checkout --progress FETCH_HEAD | ||
echo "cd ~/mu" > ~/.bashrc_new && cat ~/.bashrc >> ~/.bashrc_new | ||
rm ~/.bashrc && mv ~/.bashrc_new ~/.bashrc | ||
# As Pi OS stretch is no longer supported the repository URL was moved and is no longer updated | ||
- name: Update Stretch sources.list | ||
if: ${{ matrix.docker-tag == 'stretch-2018-03-13' }} | ||
uses: appleboy/[email protected] | ||
with: | ||
host: rpios | ||
username: pi | ||
password: raspberry | ||
port: ${{ job.services.rpios.ports[5022] }} | ||
script: echo "deb http://legacy.raspbian.org/raspbian/ stretch main contrib non-free rpi" | sudo tee /etc/apt/sources.list | ||
- name: Install Mu extra apt dependencies | ||
uses: appleboy/[email protected] | ||
with: | ||
|
@@ -159,13 +140,15 @@ jobs: | |
password: raspberry | ||
port: ${{ job.services.rpios.ports[5022] }} | ||
command_timeout: 25m | ||
# Some compiled packages take a while to be built in piwheels, so to | ||
# avoid intermittent pip install failures we use `--prefer-binary` | ||
script: | | ||
python3 -m virtualenv ~/mu/.venv -v --python=python3 --system-site-packages | ||
echo "source ~/mu/.venv/bin/activate" > ~/.bashrc_new && cat ~/.bashrc >> ~/.bashrc_new | ||
rm ~/.bashrc && mv ~/.bashrc_new ~/.bashrc | ||
source .venv/bin/activate | ||
python -m pip list | ||
python -m pip install ".[dev]" | ||
python -m pip install ."[dev]" --prefer-binary | ||
- name: Environment info | ||
uses: appleboy/[email protected] | ||
with: | ||
|
@@ -186,6 +169,5 @@ jobs: | |
username: pi | ||
password: raspberry | ||
port: ${{ job.services.rpios.ports[5022] }} | ||
# The time out can be decreased to 30 min when Stretch is dropped | ||
command_timeout: 45m | ||
command_timeout: 30m | ||
script: xvfb-run python make.py check |
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
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