gdalle
April 28, 2023, 8:42am
1
Not a question, just saving this here before the Slack black hole swallows it.
There are ways to ignore the (possibly frequent) nightly failures in the “CI: passing / failing” badge:
having 2 GitHub actions, one for CI used in the badge, and one for nightly, credits to @kellertuer
modifying the workflow to something like this , credits to @kristoffer.carlsson :
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version: ['1.7', '1']
os: [ubuntu-latest]
arch: [x64]
allow_failure: [false]
include:
- version: 'nightly'
os: ubuntu-latest
arch: x64
allow_failure: true
4 Likes
For completeness, we use
name: CI
on:
push:
branches: [master]
tags: [v*]
pull_request:
jobs:
test:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.group }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ["1.6", "1.8", "~1.9.0-0"]
os: [ubuntu-latest, macOS-latest]
group:
- 'test_manifolds'
- 'test_lie_groups'
- 'test_integration'
steps:
This file has been truncated. show original
and
name: Nightly
on:
pull_request:
jobs:
test:
name: Julia nightly - ${{ matrix.group }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
group:
- 'test_manifolds'
- 'test_lie_groups'
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: nightly
This file has been truncated. show original
Only the first one is used for the CI badge in the readme. On PR, of course, all are run.
1 Like
gdalle
September 21, 2023, 7:53pm
5
Edit: I forgot to copypaste one crucial line:
runs-on: ...
continue-on-error: ${{ matrix.allow_failure }}
stragegy: ...
Same trick as in the GitHub Actions doc, where they use experimental
instead:
1 Like