| name: get_data | |
| on: | |
| schedule: | |
| - cron: "* * * * *" | |
| jobs: | |
| uv-example: | |
| name: python | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Install the project | |
| run: uv sync --all-extras --dev | |
| - name: Run data fetch | |
| # For example, using `pytest` | |
| run: uv run python preprocess_forecast.py | |
| env: # Set the secret as an input | |
| AIVEN_USER: ${{ secrets.AIVEN_USER }} | |
| AIVEN_PASSWORD: ${{ secrets.AIVEN_PASSWORD }} | |
| AIVEN_HOST: ${{ secrets.AIVEN_HOST }} |