aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-10-30 05:35:20 +0000
committerSam James <sam@gentoo.org>2023-10-30 08:47:22 +0000
commit4ec6db2a428cd1db9cad3443f15f5b260aa369ac (patch)
tree449ba531a6acc3bb226c33b54c600145aa90503c /.github
parenttest_doebuild_fd_pipes.py: multiprocessing spawn compat (diff)
downloadportage-4ec6db2a428cd1db9cad3443f15f5b260aa369ac.tar.gz
portage-4ec6db2a428cd1db9cad3443f15f5b260aa369ac.tar.bz2
portage-4ec6db2a428cd1db9cad3443f15f5b260aa369ac.zip
CI: Use epytest-style options for pytest, including xdist
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 61ca83d50..fd901fee9 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -37,7 +37,7 @@ jobs:
python -m site
python -m pip install --upgrade pip
# setuptools needed for 3.12+ because of https://github.com/mesonbuild/meson/issues/7702.
- python -m pip install pytest setuptools
+ python -m pip install pytest pytest-xdist setuptools
# symlink /bin/true to /usr/bin/getuto (or do we want to grab the script from github?)
sudo ln -s /bin/true /usr/bin/getuto
@@ -48,4 +48,5 @@ jobs:
meson install -C /tmp/build --destdir /tmp/install-root
- name: Run tests for ${{ matrix.python-version }}
run: |
- meson test -C /tmp/build --verbose \ No newline at end of file
+ export PYTEST_ADDOPTS="-vv -ra -l -o console_output_style=count -n $(nproc) --dist=worksteal"
+ meson test -C /tmp/build --verbose