Run third-party stubtest under xvfb-run (#8719)

This commit is contained in:
Akuli
2022-09-10 18:34:11 +03:00
committed by GitHub
parent 43d4174590
commit ab022557e2
6 changed files with 23 additions and 12 deletions

View File

@@ -56,7 +56,7 @@ jobs:
sudo apt update
sudo apt install -y $(python tests/get_apt_packages.py)
- name: Run stubtest
run: python tests/stubtest_third_party.py --num-shards 4 --shard-index ${{ matrix.shard-index }}
run: xvfb-run python tests/stubtest_third_party.py --num-shards 4 --shard-index ${{ matrix.shard-index }}
# https://github.community/t/run-github-actions-job-only-if-previous-job-has-failed/174786/2
create-issue-on-failure:

View File

@@ -153,7 +153,7 @@ jobs:
echo "Installing apt packages: $APT_PACKAGES"
sudo apt update && sudo apt install -y $APT_PACKAGES
fi
python tests/stubtest_third_party.py $STUBS
xvfb-run python tests/stubtest_third_party.py $STUBS
else
echo "Nothing to test"
fi