Skip to content
This repository was archived by the owner on Aug 31, 2025. It is now read-only.

Commit 695b98f

Browse files
committed
CI: Add Arm Raspbian job that installs Mu in system Python.
In addition to the jobs installing it in a virtual environment.
1 parent f47782e commit 695b98f

File tree

1 file changed

+30
-7
lines changed

1 file changed

+30
-7
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: '*'
88

9+
env:
10+
PY_COLORS: 1
11+
#MU_LOG_TO_STDOUT: 1
12+
913
jobs:
1014
test:
1115
timeout-minutes: 30
@@ -90,11 +94,12 @@ jobs:
9094
"
9195
9296
test-pios:
93-
name: Test PiOS ${{ matrix.docker-tag }}
97+
name: Test PiOS ${{ matrix.docker-tag }} - ${{ matrix.pyenv }}
9498
runs-on: ubuntu-latest
9599
strategy:
96100
matrix:
97101
docker-tag: ['stretch-2018-03-13', 'buster-2021-05-28', 'buster-legacy-2022-04-07']
102+
pyenv: ['virtualenv', 'system']
98103
fail-fast: false
99104
services:
100105
rpios:
@@ -130,21 +135,38 @@ jobs:
130135
script: |
131136
sudo apt-get update
132137
sudo apt-get install -y python3-virtualenv
133-
- name: Create venv and install Python dependencies
138+
- name: Create virtual environment and always activate it
139+
if: matrix.pyenv == 'virtualenv'
134140
uses: appleboy/ssh-action@master
135141
with:
136142
host: rpios
137143
username: pi
138144
password: raspberry
139145
port: ${{ job.services.rpios.ports[5022] }}
140-
command_timeout: 20m
141146
script: |
142147
python3 -m virtualenv ~/mu/.venv -v --python=python3 --system-site-packages
143148
echo "source ~/mu/.venv/bin/activate" > ~/.bashrc_new && cat ~/.bashrc >> ~/.bashrc_new
144149
rm ~/.bashrc && mv ~/.bashrc_new ~/.bashrc
145-
source .venv/bin/activate
146-
python -m pip list
147-
python -m pip install ."[dev]"
150+
- name: Upgrade pip in Stretch system test
151+
if: matrix.pyenv == 'system' && matrix.docker-tag == 'stretch-2018-03-13'
152+
uses: appleboy/ssh-action@master
153+
with:
154+
host: rpios
155+
username: pi
156+
password: raspberry
157+
port: ${{ job.services.rpios.ports[5022] }}
158+
script: python3 -m pip install pip==20.3.4
159+
- name: Install Python dependencies
160+
uses: appleboy/ssh-action@master
161+
with:
162+
host: rpios
163+
username: pi
164+
password: raspberry
165+
port: ${{ job.services.rpios.ports[5022] }}
166+
command_timeout: 20m
167+
script: |
168+
python3 -m pip list
169+
python3 -m pip install ."[dev]"
148170
- name: Environment info
149171
uses: appleboy/ssh-action@master
150172
with:
@@ -158,6 +180,7 @@ jobs:
158180
python3 -c "import platform as p, sys; print(sys.executable, p.architecture(), p.machine(), sys.version, sep='\n')"
159181
python3 -m pip --version
160182
python3 -m pip list
183+
python3 -I -m pip list
161184
- name: Run tests
162185
uses: appleboy/ssh-action@master
163186
with:
@@ -166,4 +189,4 @@ jobs:
166189
password: raspberry
167190
port: ${{ job.services.rpios.ports[5022] }}
168191
command_timeout: 30m
169-
script: xvfb-run python make.py check
192+
script: xvfb-run python3 make.py check

0 commit comments

Comments
 (0)