Build and run example #147
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: Build and run example | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "23 * * * *" | |
env: | |
TERM: linux | |
TERMINFO: /etc/terminfo | |
MODAL_TOKEN_ID: ${{ secrets.MODAL_MODAL_LABS_TOKEN_ID }} | |
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_MODAL_LABS_TOKEN_SECRET }} | |
MODAL_ENVIRONMENT: examples | |
jobs: | |
build-and-run: | |
name: Build a random example from scratch and run it | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- uses: ./.github/actions/setup | |
- name: Run a random example with MODAL_IGNORE_CACHE set | |
run: | | |
MODAL_IGNORE_CACHE=1 python3 -m internal.run_example |