Skip to content

Commit 2c6a69f

Browse files
committed
Use a python venv for tests
Currently all tests are failing with: ``` python3 -m pip install duffy fabric httpx ``` and ``` Installing collected packages: pyxdg, wrapt, typing-extensions, sniffio, pycparser, invoke, h11, greenlet, decorator, annotated-types, typing-inspection, pydantic-core, httpcore, deprecated, cffi, anyio, pynacl, pydantic, httpx, paramiko, duffy, fabric Attempting uninstall: typing-extensions Found existing installation: typing_extensions 4.10.0 ERROR: Cannot uninstall typing_extensions 4.10.0, RECORD file not found. Hint: The package was installed by debian. ``` Switch to using a python virtual environment to avoid conflicts with installed packages.
1 parent 19551e9 commit 2c6a69f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/centos-stream8.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ jobs:
44
runs-on: ubuntu-latest
55
environment: centosduffy
66
steps:
7-
- uses: "actions/checkout@v2"
7+
- uses: "actions/checkout@v4"
8+
- uses: "actions/setup-python@v5"
9+
- with:
10+
python-version: '3.13'
11+
cache: 'pip'
812
- run: printf '%s\n' "$DUFFYY_SSH_PRIVATE_KEY" > /tmp/id_centos_stream
913
env:
1014
DUFFYY_SSH_PRIVATE_KEY: ${{ secrets.DUFFYY_SSH_PRIVATE_KEY }}
11-
- run: chmod 600 /tmp/id_centos_stream
12-
- run: sudo python3 -m pip install duffy fabric httpx
13-
- run: python3 t_functional_duffy_runner/src/__main__.py --arch=x86 --release=centos-9s --sshkey=/tmp/id_centos_stream --path=$GITHUB_WORKSPACE
15+
- run: pip install duffy fabric httpx
16+
17+
- run: python t_functional_duffy_runner/src/__main__.py --arch=x86 --release=centos-9s --sshkey=/tmp/id_centos_stream --path=$GITHUB_WORKSPACE
1418
env:
1519
DUFFY_AUTH_NAME: ${{ secrets.DUFFY_AUTH_NAME }}
1620
DUFFY_AUTH_KEY: ${{secrets.DUFFY_AUTH_KEY}}

0 commit comments

Comments
 (0)