commit: 4ec6db2a428cd1db9cad3443f15f5b260aa369ac Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Oct 30 05:35:20 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Oct 30 08:47:22 2023 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=4ec6db2a
CI: Use epytest-style options for pytest, including xdist Signed-off-by: Sam James <sam <AT> gentoo.org> .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61ca83d503..fd901fee96 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