Skip to content

Nightly (opensomeip main) #35

Nightly (opensomeip main)

Nightly (opensomeip main) #35

Workflow file for this run

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']
});