Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let nightly.yml accept hedgehog-tests input #6062

Merged
merged 4 commits into from
May 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,41 @@ name: Nightly Test Suite
on:
schedule:
- cron: 0 0 * * * # daily at midnight

workflow_dispatch: # or manually dispatch the job
inputs:
hedgehog-tests:
description: Numer of tests to run (--hedgehog-tests XXXXX)
required: false
default: "50000"

env:
HEDGEHOG_TESTS: ${{ github.event.inputs.hedgehog-tests || 50000 }}

jobs:
nightly-test-suite:
timeout-minutes: 14400
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Quick Install Nix
uses: cachix/install-nix-action@V27
with:
extra_nix_config: |
experimental-features = nix-command flakes
accept-flake-config = true
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Use Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: plutus-core-nightly
if: always()
run: |
pushd plutus-core
nix run --no-warn-dirty --accept-flake-config .#plutus-core-test -- --hedgehog-tests 10000
nix run --no-warn-dirty --accept-flake-config .#plutus-core-test -- --hedgehog-tests $HEDGEHOG_TESTS
popd

- name: plutus-ir-nightly
if: always()
run: |
pushd plutus-core
nix run --no-warn-dirty --accept-flake-config .#plutus-ir-test -- --hedgehog-tests 10000
nix run --no-warn-dirty --accept-flake-config .#plutus-ir-test -- --hedgehog-tests $HEDGEHOG_TESTS
popd
Loading