mirror of
https://github.com/j178/prek.git
synced 2026-04-25 02:11:36 +02:00
Make uv tests on Windows run sequentially (#104)
* Make uv tests on Windows run sequentially * Fix
This commit is contained in:
@@ -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'
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user