Skip to content

tidy up

tidy up #1238

Workflow file for this run

name: CI
on:
- push
# - pull_request
jobs:
test:
env:
GKS_ENCODING: "utf8"
GKSwstype: "nul"
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' || matrix.version == '^1.10.0-0' }}
strategy:
fail-fast: false
matrix:
version:
- '1.9' #^1-0 and ^1.9-0 are not recognised
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
test_set:
- "estimation"
- "higher_order"
- "plots"
- "basic"
include:
- os: ubuntu-latest
prefix: xvfb-run
- version: '1.8'
os: ubuntu-latest
arch: x64
test_set: "basic"
- version: '1.8'
os: ubuntu-latest
arch: x64
test_set: "plots"
- version: '^1.10.0-0'
os: ubuntu-latest
arch: x64
test_set: "estimation"
allow_failure: true
- version: '^1.10.0-0'
os: ubuntu-latest
arch: x64
test_set: "higher_order"
allow_failure: true
- version: '^1.10.0-0'
os: ubuntu-latest
arch: x64
test_set: "plots"
allow_failure: true
- version: '^1.10.0-0'
os: ubuntu-latest
arch: x64
test_set: "basic"
allow_failure: true
- version: 'nightly'
os: ubuntu-latest
arch: x64
test_set: "basic"
allow_failure: true
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- name: Set Custom Test Environment Variable
if: matrix.os == 'windows-latest'
run: echo "TEST_SET=${{ matrix.test_set }}" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
- name: Set Custom Test Environment Variable (Unix)
if: matrix.os != 'windows-latest'
run: echo "TEST_SET=${{ matrix.test_set }}" >> $GITHUB_ENV
- name: Set JULIA_NUM_THREADS for Julia 1.9 on Ubuntu
if: matrix.version == '1.9' && matrix.os == 'ubuntu-latest'
run: echo "JULIA_NUM_THREADS=2" >> $GITHUB_ENV
- uses: actions/cache@v3
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
with:
prefix: ${{ matrix.prefix }} # for `xvfb-run`
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: lcov.info