Skip to content

Commit

Permalink
Run nightly tests on plutus-benchmark (#6091)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeme-wana authored and effectfully committed Aug 6, 2024
1 parent 42d5cc1 commit 6874a84
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,25 @@ on:
hedgehog-tests:
description: Numer of tests to run (--hedgehog-tests XXXXX)
required: false
default: "50000"
default: "100000"

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

jobs:
nightly-test-suite:
timeout-minutes: 14400
runs-on: ubuntu-latest
runs-on: [self-hosted, plutus-benchmark]
steps:
- name: Checkout
uses: actions/checkout@v4

- 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: |
run: |
pushd plutus-core
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 $HEDGEHOG_TESTS
Expand Down
8 changes: 8 additions & 0 deletions nix/project.nix
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ let
ssreflect
equations
];

plutus-core.components.tests.plutus-core-test.postInstall = ''
wrapProgram $out/bin/plutus-core-test --set PATH ${lib.makeBinPath [ pkgs.diffutils ]}
'';

plutus-core.components.tests.plutus-ir-test.postInstall = ''
wrapProgram $out/bin/plutus-ir-test --set PATH ${lib.makeBinPath [ pkgs.diffutils ]}
'';
};
}

Expand Down

0 comments on commit 6874a84

Please sign in to comment.