Skip to content

Commit

Permalink
Test required status checks
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburnham committed Jan 16, 2024
1 parent f2d8651 commit 5d08a9f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[profile.ci]
# Print out output for failing tests as soon as they fail, and also at the end
# of the run (for easy scrollability).
failure-output = "immediate-final"
# Show skipped tests in the CI output.
status-level = "skip"
# Do not cancel the test run on the first failure.
fail-fast = false
# Mark tests as slow after 5mins, kill them after 20mins
slow-timeout = { period = "300s", terminate-after = 4 }
# Retry failed tests once, marked flaky if test then passes
retries = 1
10 changes: 6 additions & 4 deletions .github/workflows/reusable-caller.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
name: Test calling reusable workflow

on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [main]
merge_group:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
call-reusable-test:
uses: lurk-lab/ci-lab/.github/workflows/reusable-test.yml@main
with:
left-or-right: true
if: github.event_name != 'pull_request' || github.event.action == 'enqueued'
uses: lurk-lab/ci-workflows/.github/workflows/gpu-ci.yml@main
10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,12 @@ name = "fibonacci"
harness = false

[build-dependencies]
vergen = { version = "8", features = ["build", "git", "gitcl"] }
vergen = { version = "8", features = ["build", "git", "gitcl"] }

[profile.dev-ci]
inherits = "dev"
# By compiling dependencies with optimizations, performing tests gets much faster.
opt-level = 3
lto = "thin"
incremental = false
codegen-units = 16

0 comments on commit 5d08a9f

Please sign in to comment.