Skip to content

Commit 03bde40

Browse files
committed
switch github action
1 parent 343ea17 commit 03bde40

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/CI.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CI
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
test:
7+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
version:
13+
- '1.0'
14+
- '1.5'
15+
- 'nightly'
16+
os:
17+
- ubuntu-latest
18+
arch:
19+
- x64
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: julia-actions/setup-julia@v1
23+
with:
24+
version: ${{ matrix.version }}
25+
arch: ${{ matrix.arch }}
26+
- uses: actions/cache@v1
27+
env:
28+
cache-name: cache-artifacts
29+
with:
30+
path: ~/.julia/artifacts
31+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
32+
restore-keys: |
33+
${{ runner.os }}-test-${{ env.cache-name }}-
34+
${{ runner.os }}-test-
35+
${{ runner.os }}-
36+
- uses: julia-actions/julia-buildpkg@v1
37+
- uses: julia-actions/julia-runtest@v1
38+
- uses: julia-actions/julia-processcoverage@v1
39+
- uses: codecov/codecov-action@v1
40+
with:
41+
file: lcov.info
42+
# docs:
43+
# name: Documentation
44+
# runs-on: ubuntu-latest
45+
# steps:
46+
# - uses: actions/checkout@v2
47+
# - uses: julia-actions/setup-julia@v1
48+
# with:
49+
# version: '1'
50+
# - run: |
51+
# julia --project=docs -e '
52+
# using Pkg
53+
# Pkg.develop(PackageSpec(path=pwd()))
54+
# Pkg.instantiate()'
55+
# - run: |
56+
# julia --project=docs -e '
57+
# using Documenter: DocMeta, doctest
58+
# using BenchmarkSets
59+
# DocMeta.setdocmeta!(BenchmarkSets, :DocTestSetup, :(using BenchmarkSets); recursive=true)
60+
# doctest(BenchmarkSets)'
61+
# - run: julia --project=docs docs/make.jl
62+
# env:
63+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)