Skip to content

onnx-weekly

onnx-weekly #33

Workflow file for this run

name: onnx-weekly
on:
# Run Tuesday morning (onnx-weekly appears to drop on Mondays)
schedule:
- cron: "0 5 * * 2"
push:
paths:
- ".github/workflows/weekly.yml"
defaults:
run:
shell: bash -el {0}
jobs:
tests:
name: "Linux - weekly unit tests - ubuntu-latest"
runs-on: ubuntu-latest
env:
CI: True
steps:
- name: Checkout branch
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Set up pixi
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659
with:
environments: opset-generation
- name: Install repository
run: pixi run -e weekly postinstall
- name: Run pytest
run: pixi run -e weekly test
- name: Issue on failure
uses: actions/github-script@v7
if: ${{ failure() && github.ref == 'refs/heads/main' }}
with:
script: |
github.rest.issues.listForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
state: "open",
labels: "[bot] onnx-weekly run"
}).then((issues) => {
if (issues.data.length === 0){
github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: "CI failure for onnx-weekly",
body: "The weekly CI run with `onnx-weekly` failed. See https://github.com/Quantco/spox/actions/runs/${{github.run_id}} for details.",
labels: ["[bot] onnx-weekly run"]
})
}
});