diff --git a/.config/nextest.toml b/.config/nextest.toml new file mode 100644 index 00000000..2c1df285 --- /dev/null +++ b/.config/nextest.toml @@ -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 \ No newline at end of file diff --git a/.github/workflows/reusable-caller.yml b/.github/workflows/reusable-caller.yml index d438985c..0f9f6e2c 100644 --- a/.github/workflows/reusable-caller.yml +++ b/.github/workflows/reusable-caller.yml @@ -1,7 +1,10 @@ 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 }} @@ -9,6 +12,5 @@ concurrency: jobs: call-reusable-test: - uses: lurk-lab/ci-lab/.github/workflows/reusable-test.yml@main - with: - left-or-right: true \ No newline at end of file + if: github.event_name != 'pull_request' || github.event.action == 'enqueued' + uses: lurk-lab/ci-workflows/.github/workflows/gpu-ci.yml@main diff --git a/Cargo.toml b/Cargo.toml index 92f8c106..676e5c8f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,4 +16,12 @@ name = "fibonacci" harness = false [build-dependencies] -vergen = { version = "8", features = ["build", "git", "gitcl"] } \ No newline at end of file +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 \ No newline at end of file