Update Project.toml #71
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: Unit test | |
on: | |
create: | |
tags: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
julia-version: ['1.0', '1', 'nightly'] | |
os: [ubuntu-latest] | |
arch: [x64] | |
include: | |
- os: windows-latest | |
julia-version: '1' | |
arch: x64 | |
- os: macOS-latest | |
julia-version: '1' | |
arch: x64 | |
steps: | |
- uses: actions/[email protected] | |
- name: "Set up Julia" | |
uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.julia-version }} | |
- name: Cache artifacts | |
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 }}- | |
- name: "Unit Test" | |
uses: julia-actions/julia-runtest@master | |
# Unless tokenless upload is enabled, we can only submit coverage via | |
# environment variable. But PRs from other fork can't do that. | |
# See issue: https://github.com/julia-actions/julia-uploadcodecov/issues/1 |