Run main.py every 45 minutes #14882
This file contains hidden or 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 main.py every 45 minutes | |
| on: | |
| schedule: | |
| - cron: "*/45 * * * *" | |
| workflow_dispatch: | |
| concurrency: | |
| group: half_hourly_db_sync | |
| cancel-in-progress: false | |
| jobs: | |
| run-pipeline: | |
| strategy: | |
| matrix: | |
| group: [ "travel", "dashboard" ] | |
| fail-fast: false | |
| max-parallel: 2 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.12 | |
| cache: "pip" | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Setup Secrets | |
| run: echo "${{ secrets.SECRETS }}" | base64 --decode > .dlt/secrets.toml | |
| - name: Run main.py | |
| run: python main.py "db" "${{ matrix.group }}" |