Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Fix current issues with Python 3.5 pip, arm macOS & pi ssh action #2514

Merged
merged 2 commits into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-latest, macos-11, macos-latest, windows-2019, windows-latest]
# macos-13 is x86 and macos-14 is arm64
os: [ubuntu-20.04, ubuntu-latest, macos-11, macos-13, windows-2019, windows-latest]
python-version: ['3.5', '3.6', '3.7', '3.8']
exclude:
# Python 3.5 and 3.6 not available in the latest Ubuntu runners
Expand All @@ -28,6 +29,10 @@ 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)"
Expand Down Expand Up @@ -112,7 +117,7 @@ jobs:
- name: Wait 2m30s for the docker image to start up QEMU and Raspberry Pi OS
run: sleep 150
- name: Clone project & setup it as the bash entry directory
uses: appleboy/ssh-action@master
uses: appleboy/ssh-action@v1.0.3
with:
host: rpios
username: pi
Expand All @@ -129,15 +134,15 @@ jobs:
# 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/ssh-action@master
uses: appleboy/ssh-action@v1.0.3
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/ssh-action@master
uses: appleboy/ssh-action@v1.0.3
with:
host: rpios
username: pi
Expand All @@ -147,22 +152,22 @@ jobs:
sudo apt-get update
sudo apt-get install -y python3-virtualenv
- name: Create venv and install Python dependencies
uses: appleboy/ssh-action@master
uses: appleboy/ssh-action@v1.0.3
with:
host: rpios
username: pi
password: raspberry
port: ${{ job.services.rpios.ports[5022] }}
command_timeout: 20m
command_timeout: 25m
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]"
- name: Environment info
uses: appleboy/ssh-action@master
uses: appleboy/ssh-action@v1.0.3
with:
host: rpios
username: pi
Expand All @@ -175,7 +180,7 @@ jobs:
python3 -m pip --version
python3 -m pip list
- name: Run tests
uses: appleboy/ssh-action@master
uses: appleboy/ssh-action@v1.0.3
with:
host: rpios
username: pi
Expand Down
Loading