Nightly (opensomeip main) #35
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 (opensomeip main) | |
| on: | |
| schedule: | |
| - cron: "0 3 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| test-against-main: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: false | |
| - name: Checkout opensomeip main | |
| run: | | |
| git submodule update --init | |
| cd extern/opensomeip | |
| git checkout main | |
| git pull origin main | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install and test | |
| run: | | |
| pip install -e ".[dev]" | |
| pytest -v | |
| - name: Notify on failure | |
| if: failure() | |
| uses: actions/github-script@v8 | |
| with: | |
| script: | | |
| github.rest.issues.create({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| title: `Nightly build failed against opensomeip main (${new Date().toISOString().slice(0,10)})`, | |
| body: `The nightly CI build against opensomeip \`main\` branch failed.\n\nSee: ${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`, | |
| labels: ['ci-failure'] | |
| }); |