keth-NIGHTLY-FUZZING #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: keth-NIGHTLY-FUZZING | |
on: | |
schedule: | |
- cron: 20 0 * * * | |
workflow_dispatch: {} | |
permissions: read-all | |
jobs: | |
tests-unit: | |
runs-on: ubuntu-latest-16-cores | |
timeout-minutes: 1440 | |
env: | |
HYPOTHESIS_PROFILE: nightly | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v2 | |
with: | |
enable-cache: true | |
cache-dependency-glob: uv.lock | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: .python-version | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install forge deps | |
run: forge install | |
- name: Build solidity contracts | |
run: forge build | |
- name: Run tests | |
id: tests | |
continue-on-error: true # To send a notification if the tests fail | |
run: | | |
cd cairo | |
uv run compile_os | |
uv run pytest tests -n logical --durations=0 -v --no-skip-cached-tests | |
- name: Notify Slack on Failure | |
if: steps.tests.outcome == 'failure' | |
uses: slackapi/[email protected] | |
with: | |
payload: | | |
{ | |
"text": ":rotating_light: *Keth Nightly Fuzzing Failed!*: <@${{ secrets.SLACK_USER_1 }}> <@${{ secrets.SLACK_USER_2 }}>\n" | |
} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
- name: Fail workflow if tests failed | |
if: steps.tests.outcome == 'failure' | |
run: exit 1 |