Repository: j178/prefligit (language: python)

Issue:
Make Windows tests run in parallel



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 490aec9..7dee663 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -103,6 +103,7 @@ jobs:
 
       - name: "Cargo test"
         run: |
+          cargo nextest show-config test-groups
           cargo nextest run \
             --workspace \
             --status-level skip --failure-output immediate --no-fail-fast -j 8 --final-status-level slow
@@ -131,6 +132,7 @@ jobs:
 
       - name: "Cargo test"
         run: |
+          cargo nextest show-config test-groups
           cargo nextest run \
             --workspace \
             --status-level skip --failure-output immediate --no-fail-fast -j 8 --final-status-level slow
@@ -171,6 +173,5 @@ jobs:
       - name: "Cargo test"
         working-directory: ${{ env.PRE_COMMIT_WORKSPACE }}
         run: |
-          # use only 1 job for now
-          # uv concurrently writes to cache, which causes `Access is denied` errors
-          cargo nextest run --workspace --status-level skip --failure-output immediate --no-fail-fast -j 1 --final-status-level slow
+          cargo nextest show-config test-groups
+          cargo nextest run --workspace --status-level skip --failure-output immediate --no-fail-fast -j 8 --final-status-level slow


Test patch:
diff --git a/.config/nextest.toml b/.config/nextest.toml
new file mode 100644
index 0000000..9f515aa
--- /dev/null
+++ b/.config/nextest.toml
@@ -0,0 +1,10 @@
+[test-groups]
+uv = { max-threads = 1}
+
+# On Windows, concurrent uv runs may fail by `Access Denied` errors
+# due to concurrent uv cache writes.
+# Configure these tests to run sequentially.
+[[profile.default.overrides]]
+filter = 'test(run_basic) | test(local_need_install)'
+platform = 'cfg(windows)'
+test-group = 'uv'