Update from https://github.com/CompassLabs/Dojo/commit/9ca76f70217cfc… #459
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: run_snippets | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: '*' | |
schedule: | |
- cron: '0 0 */3 * *' # Runs at midnight every 3 days | |
workflow_dispatch: | |
env: | |
RPC_URL: ${{ secrets.RPC_URL }} | |
LICENSE_KEY: ${{ secrets.LICENSE_KEY }} | |
FAILURE_WEBHOOK: ${{secrets.FAILURE_WEBHOOK}} | |
CHAIN: ethereum | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run_snippets: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ['ubuntu-latest', 'macos-14'] | |
python-version: ['3.10', '3.11'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup dev environment | |
uses: CompassLabs/workflows/.github/actions/setup_dojo_pypi@main | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run Snippets first | |
id: snippets_first_try | |
continue-on-error: true | |
run: | | |
cd snippets | |
find . -name "*.py" -exec python {} \; |