Skip to content

Add checks

Add checks #1581

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- '*'
pull_request:
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: 40
strategy:
fail-fast: false
matrix:
version:
- '1.11'
- '1.12'
os:
- ubuntu-latest
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v6
- uses: julia-actions/setup-julia@v3
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- name: Remove plotting packages (Linux)
if: runner.os == 'Linux'
run: sed -i '/KiteViewers\|NativeFileDialog\|Joysticks\|MakieControlPlots\|PyPlot/d' test/Project.toml
shell: bash
- name: Remove plotting packages (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: (Get-Content test\Project.toml) -notmatch 'KiteViewers|NativeFileDialog|Joysticks|MakieControlPlots|PyPlot' | Set-Content test\Project.toml
- uses: julia-actions/cache@v3
if: runner.os != 'Windows' || matrix.version != '1.11'
with:
cache-name: ${{ hashFiles('**/Manifest-v*.toml') }}
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v6
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}