2020-05-25 04:08:07 +00:00
|
|
|
name: Unit Tests
|
2020-01-17 05:38:16 +00:00
|
|
|
|
2020-05-25 04:08:07 +00:00
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
2020-01-17 05:38:16 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
2021-04-28 01:48:47 +00:00
|
|
|
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-arch }} - ${{ github.event_name }}
|
2020-01-17 05:38:16 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
2020-05-25 04:08:07 +00:00
|
|
|
continue-on-error: ${{ matrix.experimental }}
|
2020-01-17 05:38:16 +00:00
|
|
|
strategy:
|
2020-05-25 04:08:07 +00:00
|
|
|
fail-fast: false
|
2020-01-17 05:38:16 +00:00
|
|
|
matrix:
|
2020-05-25 04:08:07 +00:00
|
|
|
julia-version:
|
|
|
|
- '1.0' # LTS
|
|
|
|
- '1'
|
|
|
|
julia-arch: [x64, x86]
|
2020-01-17 05:38:16 +00:00
|
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
2021-04-28 01:48:47 +00:00
|
|
|
exclude:
|
|
|
|
- os: macOS-latest
|
|
|
|
julia-arch: x86
|
2020-05-25 04:08:07 +00:00
|
|
|
experimental: [false]
|
|
|
|
include:
|
|
|
|
- julia-version: nightly
|
|
|
|
julia-arch: x64
|
|
|
|
os: ubuntu-latest
|
|
|
|
experimental: true
|
2020-01-17 05:38:16 +00:00
|
|
|
|
|
|
|
steps:
|
2020-05-25 04:08:07 +00:00
|
|
|
- name: Checkout Repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Julia
|
|
|
|
uses: julia-actions/setup-julia@v1
|
2020-01-17 05:38:16 +00:00
|
|
|
with:
|
|
|
|
version: ${{ matrix.julia-version }}
|
2020-05-25 04:08:07 +00:00
|
|
|
- name: Run Tests
|
2021-04-28 01:48:47 +00:00
|
|
|
uses: julia-actions/julia-runtest@v1
|
2020-05-25 04:08:07 +00:00
|
|
|
- name: Create CodeCov
|
|
|
|
uses: julia-actions/julia-processcoverage@v1
|
|
|
|
- name: Upload CodeCov
|
|
|
|
uses: codecov/codecov-action@v1
|
|
|
|
with:
|
|
|
|
file: ./lcov.info
|
|
|
|
flags: unittests
|
|
|
|
name: codecov-umbrella
|
|
|
|
fail_ci_if_error: false
|
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|