Skip to content

nightly-ci-integration-tests #150

nightly-ci-integration-tests

nightly-ci-integration-tests #150

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: "--longtests"
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