Fix tests for GLM v1.9 #179
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'release-' | |
tags: '*' | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
FORCE_COLOR: "1" | |
jobs: | |
format-check: | |
# note: keep in sync with `format/run.jl` | |
name: Style check (Julia ${{ matrix.julia-version }} - ${{ github.event_name }}) | |
# Run on push's or non-draft PRs | |
if: (github.event_name == 'push') || (github.event.pull_request.draft == false) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
julia-version: [1.6] | |
steps: | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: ${{ matrix.julia-version }} | |
- uses: actions/checkout@v4 | |
- name: Instantiate `format` environment and format | |
run: | | |
julia --project=format -e 'using Pkg; Pkg.instantiate()' | |
julia --project=format 'format/run.jl' | |
- uses: reviewdog/action-suggester@v1 | |
if: github.event_name == 'pull_request' | |
with: | |
tool_name: JuliaFormatter | |
fail_on_error: true | |
typos-check: | |
name: Spell Check with Typos | |
# Run on PRs | |
if: github.event_name == 'pull_request' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Actions Repository | |
uses: actions/checkout@v4 | |
- name: Check spelling | |
uses: crate-ci/typos@master | |
with: | |
config: ./_typos.toml | |
write_changes: true | |
- uses: reviewdog/action-suggester@v1 | |
with: | |
tool_name: Typos | |
fail_on_error: true | |
test: | |
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
julia-version: | |
- '1.6' | |
- '1' # latest stable 1.x release | |
- 'nightly' | |
os: | |
- ubuntu-latest | |
arch: | |
- x64 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: ${{ matrix.julia-version }} | |
arch: ${{ matrix.arch }} | |
- uses: actions/cache@v1 | |
env: | |
cache-name: cache-artifacts | |
with: | |
path: ~/.julia/artifacts | |
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | |
restore-keys: | | |
${{ runner.os }}-test-${{ env.cache-name }}- | |
${{ runner.os }}-test- | |
${{ runner.os }}- | |
- uses: julia-actions/julia-buildpkg@v1 | |
- uses: julia-actions/julia-runtest@v1 | |
- uses: julia-actions/julia-processcoverage@v1 | |
- uses: codecov/codecov-action@v1 | |
with: | |
file: lcov.info | |
docs: | |
name: Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: '1' | |
- name: Install dependencies | |
run: julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' | |
- name: Build and deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | |
run: julia --project=docs docs/make.jl |