Skip to content

Commit babb357

Browse files
committed
Fix ci-config-functions.yml workflow
Pip doesn't seem to like the cache data
1 parent f246a0c commit babb357

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

.github/workflows/ci-config-functions.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,21 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28+
python-version: [3.11]
2829
container_runtime:
2930
- PODMAN
3031
steps:
31-
- uses: actions/cache@v3
32-
with:
33-
path: |
34-
~/.cache/pip
35-
~/.cache/pypoetry
36-
37-
- name: checkout source code
38-
uses: actions/checkout@v3
39-
- name: set up Python
32+
- uses: actions/checkout@v3
33+
- name: Python${{ matrix.python-version }}
4034
uses: actions/setup-python@v4
35+
with:
36+
python-version: ${{ matrix.python-version }}
4137
- name: Install Poetry
4238
run: |
43-
sudo python -m pip install poetry
44-
39+
python -m pip install --upgrade pip
40+
python -m pip install poetry
41+
sudo python -m pip install pytest-container
4542
- name: Run the scripts integration tests
46-
run: sudo make test_scripts
43+
run: make test_scripts
4744
env:
4845
CONTAINER_RUNTIME: ${{ matrix.container_runtime }}

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ docs_suse: setup
110110
bash -c 'pushd doc/build && daps -d DC-kiwi html'
111111

112112
test_scripts: setup
113-
poetry run bash -c \
114-
'pip install pytest-container && pushd test/scripts && pytest -s -vv'
113+
poetry run bash -c 'pushd test/scripts && sudo pytest -s -vv'
115114

116115
check: setup
117116
# shell code checks

0 commit comments

Comments
 (0)