浏览代码

CI: try 4 parallel pytest-xdist workers

Thomas Waldmann 2 年之前
父节点
当前提交
7092f24f4a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      .github/workflows/ci.yml

+ 2 - 1
.github/workflows/ci.yml

@@ -129,6 +129,7 @@ jobs:
         # we already have that in the global env, but something is broken and overwrites that.
         # so, set it here, again.
         PKG_CONFIG_PATH: "/usr/local/opt/openssl@1.1/lib/pkgconfig:$PKG_CONFIG_PATH"
+        XDISTN: "4"
       run: |
         # do not use fakeroot, but run as root. avoids the dreaded EISDIR sporadic failures. see #2482.
         #sudo -E bash -c "tox -e py"
@@ -177,4 +178,4 @@ jobs:
       - name: Run tests
         run: |
           ./dist/borg.exe -V
-          pytest --benchmark-skip -vv -rs -k "not remote"
+          pytest -n4 --benchmark-skip -vv -rs -k "not remote"