mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-04-28 03:01:21 -04:00
This is done to lower the GitHub API requests pressure generated by multiple calls from Slab. By not going through Slab, the risk of being rate-limited on GitHub API is greatly reduced.
59 lines
2.1 KiB
YAML
59 lines
2.1 KiB
YAML
name: integer_long_run_tests
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
ACTION_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
RUSTFLAGS: "-C target-cpu=native"
|
|
RUST_BACKTRACE: "full"
|
|
RUST_MIN_STACK: "8388608"
|
|
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
|
|
SLACK_ICON: https://pbs.twimg.com/profile_images/1274014582265298945/OjBKP9kn_400x400.png
|
|
SLACK_USERNAME: ${{ secrets.BOT_USERNAME }}
|
|
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
|
|
|
on:
|
|
# Allows you to run this workflow manually from the Actions tab as an alternative.
|
|
workflow_dispatch:
|
|
schedule:
|
|
# Weekly tests will be triggered each Friday at 9p.m.
|
|
- cron: "0 21 * * 5"
|
|
|
|
|
|
permissions: {}
|
|
|
|
# zizmor: ignore[concurrency-limits] concurrency is managed after instance setup to ensure safe provisioning
|
|
|
|
jobs:
|
|
cpu-tests:
|
|
name: integer_long_run_tests/cpu-tests
|
|
if: github.event_name != 'schedule' ||
|
|
(github.event_name == 'schedule' && github.repository == 'zama-ai/tfhe-rs')
|
|
concurrency:
|
|
group: ${{ github.workflow_ref }}_${{github.event_name}}
|
|
cancel-in-progress: true
|
|
runs-on: "runs-on=${{ github.run_id }}/runner=cpu-big"
|
|
timeout-minutes: 4320 # 72 hours
|
|
steps:
|
|
- name: Checkout tfhe-rs
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
|
|
with:
|
|
persist-credentials: 'false'
|
|
token: ${{ secrets.REPO_CHECKOUT_TOKEN }}
|
|
|
|
- name: Install latest stable
|
|
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # zizmor: ignore[stale-action-refs] this action doesn't create releases
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Run tests
|
|
run: |
|
|
make test_integer_long_run
|
|
|
|
- name: Slack Notification
|
|
if: ${{ failure() || (cancelled() && github.event_name != 'pull_request') }}
|
|
continue-on-error: true
|
|
uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661
|
|
env:
|
|
SLACK_COLOR: ${{ job.status }}
|
|
SLACK_MESSAGE: "CPU long run tests finished with status: ${{ job.status }}. (${{ env.ACTION_RUN_URL }})"
|