Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.

Commit 7c3ea39

Browse files
committed
Update CI
1 parent 86dc839 commit 7c3ea39

File tree

1 file changed

+18
-28
lines changed

1 file changed

+18
-28
lines changed

.github/workflows/CI.yml

Lines changed: 18 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ name: CI
22
env:
33
DATADEPS_ALWAYS_ACCEPT: true
44
on:
5-
- push
6-
- pull_request
7-
8-
defaults:
9-
run:
10-
shell: bash
11-
5+
push:
6+
branches: '*'
7+
tags: '*'
8+
pull_request:
9+
concurrency:
10+
# Skip intermediate builds: always.
11+
# Cancel intermediate builds: only if it is a pull request build.
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
1214
jobs:
1315
test:
1416
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -31,42 +33,30 @@ jobs:
3133
with:
3234
version: ${{ matrix.version }}
3335
arch: ${{ matrix.arch }}
34-
- uses: actions/cache@v1
35-
env:
36-
cache-name: cache-artifacts
37-
with:
38-
path: ~/.julia/artifacts
39-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
40-
restore-keys: |
41-
${{ runner.os }}-test-${{ env.cache-name }}-
42-
${{ runner.os }}-test-
43-
${{ runner.os }}-
36+
- uses: julia-actions/cache@v1
4437
- uses: julia-actions/julia-buildpkg@v1
4538
- uses: julia-actions/julia-runtest@v1
4639
- uses: julia-actions/julia-processcoverage@v1
47-
- uses: codecov/codecov-action@v1
40+
- uses: codecov/codecov-action@v2
4841
with:
49-
file: lcov.info
42+
files: lcov.info
5043
docs:
5144
name: Documentation
5245
runs-on: ubuntu-latest
46+
permissions:
47+
contents: write
5348
steps:
5449
- uses: actions/checkout@v2
5550
- uses: julia-actions/setup-julia@v1
5651
with:
5752
version: '1'
58-
- run: |
59-
julia --project=docs -e '
60-
using Pkg
61-
Pkg.develop(PackageSpec(path=pwd()))
62-
Pkg.instantiate()'
53+
- uses: julia-actions/julia-buildpkg@v1
54+
- uses: julia-actions/julia-docdeploy@v1
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6357
- run: |
6458
julia --project=docs -e '
6559
using Documenter: DocMeta, doctest
6660
using NeuralOperators
6761
DocMeta.setdocmeta!(NeuralOperators, :DocTestSetup, :(using NeuralOperators); recursive=true)
6862
doctest(NeuralOperators)'
69-
- run: julia --project=docs docs/make.jl
70-
env:
71-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)