-
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, more Python versions, macOS arm64, & aarch64 Ubuntu.
- Loading branch information
1 parent
2f07fcc
commit 7a37ec2
Showing
5 changed files
with
57 additions
and
68 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,19 @@ 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, ubuntu-22.04-arm, macos-13, macos-14, windows-2019, windows-latest] | ||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] | ||
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: macos-14 | ||
python-version: '3.8' | ||
#- os: macos-14 | ||
# python-version: '3.9' | ||
- os: ubuntu-24.04 | ||
python-version: '3.7' | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
name: Test Py ${{ matrix.python-version }} - ${{ matrix.os }} | ||
|
@@ -42,19 +46,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 +104,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 +130,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 +148,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 +177,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