Skip to content

CI

CI #99

Workflow file for this run

name: CI
on:
schedule:
# Run CI every Sunday
- cron: '0 0 * * 0'
push:
branches:
- main
- /^release-.*$/
paths:
- '.github/workflows/ci.yml'
- 'test/**'
- 'src/**'
- 'deps/**'
- 'Project.toml'
- 'README.md' # since we test the README
pull_request:
types: [opened, synchronize, reopened]
paths:
- '.github/workflows/ci.yml'
- 'test/**'
- 'src/**'
- 'deps/**'
- 'Project.toml'
- 'README.md' # since we test the README
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:
timeout-minutes: 30
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.8'
- '1'
os:
- windows-latest
- ubuntu-latest
- macOS-latest
arch:
- x64
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v2
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-artifacts-${{ hashFiles('**/Project.toml') }}
restore-keys: ${{ runner.os }}-test-artifacts
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: lcov.info