Skip to content

Commit e40e896

Browse files
committed
new ci?
1 parent 247e0d1 commit e40e896

File tree

1 file changed

+30
-20
lines changed

1 file changed

+30
-20
lines changed

.github/workflows/CI.yml

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
name: CI
22
on:
3+
pull_request:
4+
branches:
5+
- master
36
push:
47
branches:
5-
- main
8+
- master
69
tags: '*'
7-
pull_request:
8-
concurrency:
9-
# Skip intermediate builds: always.
10-
# Cancel intermediate builds: only if it is a pull request build.
11-
group: ${{ github.workflow }}-${{ github.ref }}
12-
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
1310
jobs:
1411
test:
1512
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -18,26 +15,36 @@ jobs:
1815
fail-fast: false
1916
matrix:
2017
version:
21-
- '1.0'
22-
- '1.7'
18+
- '1.7' # lowest supported version
19+
- '1' # last released version
2320
os:
2421
- ubuntu-latest
22+
- macos-latest
23+
# - windows-latest
2524
arch:
2625
- x64
27-
- x86
2826
steps:
2927
- uses: actions/checkout@v2
3028
- uses: julia-actions/setup-julia@v1
3129
with:
3230
version: ${{ matrix.version }}
3331
arch: ${{ matrix.arch }}
34-
- uses: julia-actions/cache@v1
32+
- uses: actions/cache@v1
33+
env:
34+
cache-name: cache-artifacts
35+
with:
36+
path: ~/.julia/artifacts
37+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
38+
restore-keys: |
39+
${{ runner.os }}-test-${{ env.cache-name }}-
40+
${{ runner.os }}-test-
41+
${{ runner.os }}-
3542
- uses: julia-actions/julia-buildpkg@v1
3643
- uses: julia-actions/julia-runtest@v1
3744
- uses: julia-actions/julia-processcoverage@v1
38-
- uses: codecov/codecov-action@v2
45+
- uses: codecov/codecov-action@v1
3946
with:
40-
files: lcov.info
47+
file: lcov.info
4148
docs:
4249
name: Documentation
4350
runs-on: ubuntu-latest
@@ -46,14 +53,17 @@ jobs:
4653
- uses: julia-actions/setup-julia@v1
4754
with:
4855
version: '1'
49-
- uses: julia-actions/julia-buildpkg@v1
50-
- uses: julia-actions/julia-docdeploy@v1
51-
env:
52-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
5456
- run: |
5557
julia --project=docs -e '
56-
using Documenter: DocMeta, doctest
58+
using Pkg
59+
Pkg.develop(PackageSpec(path=pwd()))
60+
Pkg.instantiate()'
61+
- run: |
62+
julia --project=docs -e '
63+
using Documenter: doctest
5764
using SymPyCall
58-
DocMeta.setdocmeta!(SymPyCall, :DocTestSetup, :(using SymPyCall); recursive=true)
5965
doctest(SymPyCall)'
66+
- run: julia --project=docs docs/make.jl
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)