workflow,pytest: add new --error-on-skip
for pytest
#868
Annotations
1 error and 1 warning
Run
Command failed: /usr/bin/docker run --net=host --privileged --rm --volume=/:/osb/host --volume=/home/runner/work/osbuild/osbuild:/osb/workdir --volume=/lib/modules/:/lib/modules/ --volume=/var/run/docker.sock:/var/run/docker.sock ghcr.io/osbuild/osbuild-ci:latest-202409171558 /bin/bash -o errexit -c # Hacky replacement of container storage driver:
# The default overlayfs doesn't work in the runner, so let's change
# it to vfs for the local storage skopeo stage test.
sed -i 's/overlay/vfs/g' /usr/share/containers/storage.conf # default system config
sed -i 's/overlay/vfs/g' /etc/containers/storage.conf || true # potential overrides
if [ "parallel" == "parallel" ]; then
# 4 is a bit arbitrary
TEST_WORKERS="-n 4"
TEST_CATEGORY="test_stages.py"
else
# test_assemblers.py is run below
TEST_CATEGORY="not test_stages.py and not test_assemblers.py"
# DNF python package can't be installed using pip in the tox environment.
# We need to use the version from the system to test things.
# Since we are running tests on Fedora, enable site packages only
# for Python version which is available on Fedora.
# See also: https://github.com/osbuild/containers/pull/79
if [ "py36" == "$(cat /osb/libdnf-python-version)" ]; then
TOX_ARGS="-x testenv.sitepackages=True"
fi
fi
OSBUILD_TEST_STORE="/var/tmp/osbuild-test-store" \
tox -e "py36" $TOX_ARGS -- -rs $TEST_WORKERS -k "$TEST_CATEGORY" --error-on-skip -k "not test_selinux"
|
The following actions use a deprecated Node.js version and will be forced to run on node20: osbuild/containers/src/actions/privdocker@552e30cf1b4ed19c6ddaa57f96c342b3dff4227b. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading