Nightly: Integration Tests #24
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: 'Nightly: Integration Tests' | |
| on: | |
| push: | |
| branches: [main] | |
| # Nightly run at midnight EU time (23:00 UTC for CET, 22:00 UTC for CEST) | |
| # Using 23:00 UTC to cover CET midnight | |
| schedule: | |
| - cron: '0 23 * * *' | |
| # Allow manual trigger | |
| workflow_dispatch: | |
| workflow_call: | |
| concurrency: | |
| group: integration-tests | |
| cancel-in-progress: false | |
| jobs: | |
| integration-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install the project | |
| run: uv sync --all-extras | |
| - name: Install just | |
| run: | | |
| curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin | |
| - name: Create credentials directory | |
| run: mkdir -p credentials | |
| - name: Set up DO credentials | |
| env: | |
| TOKEN_DO_JSON: ${{ secrets.TOKEN_DO_JSON }} | |
| run: printf '%s' "$TOKEN_DO_JSON" > credentials/token_do.json | |
| - name: Set up DS credentials | |
| env: | |
| TOKEN_DS_JSON: ${{ secrets.TOKEN_DS_JSON }} | |
| run: printf '%s' "$TOKEN_DS_JSON" > credentials/token_ds.json | |
| - name: Run integration tests | |
| env: | |
| AI_AUDIT_EMAIL_DO: ${{ secrets.AI_AUDIT_EMAIL_DO }} | |
| AI_AUDIT_EMAIL_DS: ${{ secrets.AI_AUDIT_EMAIL_DS }} | |
| run: just test-integration |