Skip to content

Commit 0e587bc

Browse files
committed
workflows: Do not install packages on Ubuntu testing
Instead use `--build-lib` and `PYTHONPATH`
1 parent 7163bb5 commit 0e587bc

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/ubuntu_test.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,10 @@ jobs:
2020
systemd dbus python3 gcc
2121
- name: Build extension
2222
run: |
23-
python3 setup.py build
24-
- name: Install extension
25-
run: |
26-
sudo python3 setup.py install --old-and-unmanageable
23+
python3 setup.py build --build-lib build-lib
2724
- name: Run unit tests
2825
run: |
29-
python3 -m unittest
26+
PYTHONPATH=./build-lib python3 -m unittest
3027
limited:
3128
name: Run build and unit tests. (limited API)
3229
runs-on: ubuntu-20.04
@@ -42,15 +39,10 @@ jobs:
4239
env:
4340
PYTHON_SDBUS_USE_LIMITED_API: "1"
4441
run: |
45-
python3 setup.py build
46-
- name: Install extension
47-
env:
48-
PYTHON_SDBUS_USE_LIMITED_API: "1"
49-
run: |
50-
sudo python3 setup.py install --old-and-unmanageable
42+
python3 setup.py build --build-lib build-lib
5143
- name: Run unit tests
5244
run: |
53-
python3 -m unittest
45+
PYTHONPATH=./build-lib python3 -m unittest
5446
lint:
5547
name: Run linters on the code
5648
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)