CI: determine the libdnf python version from /osb/libdnf-python-version
Instead of hard-coding the Python version that the installed python3-dnf has been built against on the latest Fedora, read the value from the osbuild-ci container. The container now has the version written in /osb/libdnf-python-version. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
ba70909975
commit
9510e88c0f
1 changed files with 4 additions and 3 deletions
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
|
|
@ -30,7 +30,7 @@ jobs:
|
||||||
- name: "Run"
|
- name: "Run"
|
||||||
uses: osbuild/containers/src/actions/privdocker@552e30cf1b4ed19c6ddaa57f96c342b3dff4227b
|
uses: osbuild/containers/src/actions/privdocker@552e30cf1b4ed19c6ddaa57f96c342b3dff4227b
|
||||||
with:
|
with:
|
||||||
image: ghcr.io/osbuild/osbuild-ci:latest-202404252004
|
image: ghcr.io/osbuild/osbuild-ci:latest-202409171558
|
||||||
run: |
|
run: |
|
||||||
# Hacky replacement of container storage driver:
|
# Hacky replacement of container storage driver:
|
||||||
# The default overlayfs doesn't work in the runner, so let's change
|
# The default overlayfs doesn't work in the runner, so let's change
|
||||||
|
|
@ -49,7 +49,8 @@ jobs:
|
||||||
# We need to use the version from the system to test things.
|
# We need to use the version from the system to test things.
|
||||||
# Since we are running tests on Fedora, enable site packages only
|
# Since we are running tests on Fedora, enable site packages only
|
||||||
# for Python version which is available on Fedora.
|
# for Python version which is available on Fedora.
|
||||||
if [ "${{ matrix.environment }}" == "py312" ]; then
|
# See also: https://github.com/osbuild/containers/pull/79
|
||||||
|
if [ "${{ matrix.environment }}" == "$(cat /osb/libdnf-python-version)" ]; then
|
||||||
TOX_ARGS="-x testenv.sitepackages=True"
|
TOX_ARGS="-x testenv.sitepackages=True"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
@ -68,7 +69,7 @@ jobs:
|
||||||
# Using 4 workers is a bit arbitrary, "auto" is probably too aggressive.
|
# Using 4 workers is a bit arbitrary, "auto" is probably too aggressive.
|
||||||
TEST_WORKERS: "-n 4"
|
TEST_WORKERS: "-n 4"
|
||||||
with:
|
with:
|
||||||
image: ghcr.io/osbuild/osbuild-ci:latest-202404252004
|
image: ghcr.io/osbuild/osbuild-ci:latest-202409171558
|
||||||
run: |
|
run: |
|
||||||
OSBUILD_TEST_STORE="${{ env.OSBUILD_TEST_STORE }}" \
|
OSBUILD_TEST_STORE="${{ env.OSBUILD_TEST_STORE }}" \
|
||||||
tox -e "py36" -- ${{ env.TEST_WORKERS }} test.run.test_assemblers
|
tox -e "py36" -- ${{ env.TEST_WORKERS }} test.run.test_assemblers
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue