mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-06 13:15:47 -06:00
ci: adjust timeouts for nextest given docker requirements
This commit is contained in:
@@ -1,13 +1,22 @@
|
|||||||
[profile.default]
|
[profile.default]
|
||||||
fail-fast = false
|
fail-fast = false
|
||||||
slow-timeout = { period = "5s", terminate-after = 6 }
|
slow-timeout = { period = "5s", terminate-after = 6 } # max 30 seconds
|
||||||
|
|
||||||
|
# CI machines are pretty slow, so we need to increase the timeout
|
||||||
|
[profile.ci]
|
||||||
|
slow-timeout = { period = "30s", terminate-after = 4 } # max 2 minutes for slow tests
|
||||||
|
|
||||||
|
# Coverage works even slower, so we need to increase the timeout
|
||||||
[profile.coverage]
|
[profile.coverage]
|
||||||
|
slow-timeout = { period = "45s", terminate-after = 5 } # max 3.75 minutes for slow tests
|
||||||
status-level = "none"
|
status-level = "none"
|
||||||
|
|
||||||
[[profile.default.overrides]]
|
[[profile.default.overrides]]
|
||||||
|
# Integration tests in SDL2 run serially (may not be required)
|
||||||
filter = 'test(pacman::game::)'
|
filter = 'test(pacman::game::)'
|
||||||
test-group = 'serial'
|
test-group = 'serial'
|
||||||
|
|
||||||
|
|
||||||
[test-groups]
|
[test-groups]
|
||||||
|
# Ensure serial tests don't run in parallel
|
||||||
serial = { max-threads = 1 }
|
serial = { max-threads = 1 }
|
||||||
|
|||||||
2
.github/workflows/tests.yaml
vendored
2
.github/workflows/tests.yaml
vendored
@@ -51,5 +51,5 @@ jobs:
|
|||||||
- uses: taiki-e/install-action@nextest
|
- uses: taiki-e/install-action@nextest
|
||||||
|
|
||||||
- name: Run nextest
|
- name: Run nextest
|
||||||
run: cargo nextest run --workspace
|
run: cargo nextest run --workspace --profile ci
|
||||||
working-directory: pacman
|
working-directory: pacman
|
||||||
|
|||||||
Reference in New Issue
Block a user