Skip to content

refactor: Add similar for each of the subtype that it is possible to … #208

refactor: Add similar for each of the subtype that it is possible to …

refactor: Add similar for each of the subtype that it is possible to … #208

Workflow file for this run

name: CI
on:
push:
branches:
- trunk
tags: ['*']
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
workflow_dispatch:
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
actions: write
contents: read
strategy:
fail-fast: false
matrix:
version:
- 'min'
# - 'lts' # Disabled: Does not support `public` keyword
- 'pre'
os:
- ubuntu-latest
- macOS-latest
arch:
- x64
steps:
- uses: actions/checkout@v5
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-processcoverage@v1
- name: Coveralls
uses: coverallsapp/github-action@v2
continue-on-error: true # allow the coverage upload to fail
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
test-nightly:
name: Julia nightly - ubuntu-latest - x64 - ${{ github.event_name }}
runs-on: ubuntu-latest
timeout-minutes: 60
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
actions: write
contents: read
steps:
- uses: actions/checkout@v5
- uses: julia-actions/setup-julia@latest
with:
version: nightly
arch: x64
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@latest
- id: test
uses: julia-actions/julia-runtest@latest
continue-on-error: true
- uses: mainmatter/continue-on-error-comment@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
outcome: ${{ steps.test.outcome }}
test-id: Failed nightly - ubuntu-latest - x64 - ${{ github.event_name }}
- uses: julia-actions/julia-processcoverage@v1
- name: Coveralls
uses: coverallsapp/github-action@v2
continue-on-error: true # allow the coverage upload to fail
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
docs:
name: Documentation
runs-on: ubuntu-latest
permissions:
actions: write # needed to allow julia-actions/cache to proactively delete old caches that it has created
contents: write
statuses: write
steps:
- uses: actions/checkout@v5
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v2
- name: Setup docs julia project
run: >
DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' -- julia --project=docs --color=yes --eval "using Pkg; Pkg.develop(PackageSpec(path=abspath(\".\"))); Pkg.instantiate()"; # NOTE: compilation of Makie also needs a screen
- uses: julia-actions/julia-buildpkg@latest
- name: Build and deploy docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >
cd docs;
DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' -- julia --project --color=yes make.jl # NOTE: showing figures needs a screen