nightly-ci-integration-tests #188
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-ci-integration-tests | |
| on: | |
| schedule: | |
| - cron: "0 23 * * *" # every day at 22pm on default(main) branch | |
| workflow_dispatch: | |
| jobs: | |
| integration_tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: ecmwf/reusable-workflows/nightly-pytest@main | |
| with: | |
| repository: ${{github.repository}} | |
| ref: ${{github.ref}} | |
| python-version: '3.10' | |
| install-package: "-e ./training[all,tests] -e ./graphs[all,tests] -e ./models[all,tests]" | |
| test-directory: "training/tests/integration" | |
| pytest-options: "--slow" | |
| manual: ${{github.event_name == 'workflow_dispatch' && 'true' || 'false'}} | |
| notify-team: | |
| needs: integration_tests | |
| if: failure() && github.event_name == 'schedule' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Add failure comment | |
| uses: peter-evans/create-or-update-comment@v3 | |
| with: | |
| issue-number: 294 | |
| body: | | |
| ## 🚨 Nightly Job Failed | |
| **Repository:** ${{ github.repository }} | |
| **Workflow:** ${{ github.workflow }} | |
| **Run URL:** [View logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) | |
| **Time:** ${{ github.event.schedule }} | |
| cc: @ecmwf/anemoisecurity |