Skip to content

Commit a24d394

Browse files
authored
Merge pull request #57 from mulkieran/tidy-up-pip-install
Use --user option for pip install
2 parents bc1fb15 + ee3a8dc commit a24d394

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,17 @@ jobs:
2525
python3-pyparsing
2626
python3-hypothesis
2727
task: >
28-
PYTHONPATH=./src:../usr/local/lib/python3.11/site-packages
28+
PYTHONPATH=./src:/github/home/.local/lib/python3.11/site-packages
2929
make -f Makefile lint
3030
- dependencies: >
3131
python3-pyparsing
3232
python3-hypothesis
33-
task: >
34-
PYTHONPATH=./src:../usr/local/lib/python3.11/site-packages
35-
make -f Makefile test
33+
task: PYTHONPATH=./src make -f Makefile test
3634
- dependencies: >
3735
python3-coverage
3836
python3-pyparsing
3937
python3-hypothesis
40-
task: >
41-
PYTHONPATH=./src:../usr/local/lib/python3.11/site-packages
42-
make -f Makefile coverage
38+
task: PYTHONPATH=./src make -f Makefile coverage
4339
runs-on: ubuntu-latest
4440
container: fedora:38 # CURRENT DEVELOPMENT ENVIRONMENT
4541
steps:
@@ -51,6 +47,6 @@ jobs:
5147
pip
5248
${{ matrix.dependencies }}
5349
- name: Install hs-dbus-signature
54-
run: pip install --root=.. hs-dbus-signature
50+
run: pip install --user hs-dbus-signature
5551
- name: ${{ matrix.task }}
5652
run: ${{ matrix.task }}

.github/workflows/weekly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
task: make -f Makefile yamllint
1919
- dependencies: pylint python3-pyparsing python-hypothesis
2020
task: >
21-
PYTHONPATH=./src:../usr/local/lib/python3.11/site-packages
21+
PYTHONPATH=./src:/github/home/.local/lib/python3.11/site-packages
2222
make -f Makefile lint
2323
runs-on: ubuntu-latest
2424
container: fedora:38 # NEXT DEVELOPMENT ENVIRONMENT
@@ -31,6 +31,6 @@ jobs:
3131
pip
3232
${{ matrix.dependencies }}
3333
- name: Install hs-dbus-signature
34-
run: pip install --root=.. hs-dbus-signature
34+
run: pip install --user hs-dbus-signature
3535
- name: ${{ matrix.task }}
3636
run: ${{ matrix.task }}

0 commit comments

Comments
 (0)