|
1 | | -#name: CI |
2 | | -#on: |
3 | | -# push: |
4 | | -# branches: |
5 | | -# - main |
6 | | -# 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/') }} |
13 | | -#jobs: |
14 | | -# test: |
15 | | -# name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} |
16 | | -# runs-on: ${{ matrix.os }} |
17 | | -# strategy: |
18 | | -# fail-fast: false |
19 | | -# matrix: |
20 | | -# version: |
21 | | -# - '1' |
22 | | -# - 'nightly' |
23 | | -# os: |
24 | | -# - ubuntu-latest |
25 | | -# arch: |
26 | | -# - x64 |
27 | | -# steps: |
28 | | -# - uses: actions/checkout@v2 |
29 | | -# - uses: julia-actions/setup-julia@v1 |
30 | | -# with: |
31 | | -# version: ${{ matrix.version }} |
32 | | -# arch: ${{ matrix.arch }} |
33 | | -# - uses: julia-actions/cache@v1 |
34 | | -# - uses: julia-actions/julia-buildpkg@v1 |
35 | | -# - uses: julia-actions/julia-runtest@v1 |
36 | | -# - uses: julia-actions/julia-processcoverage@v1 |
37 | | -# - uses: codecov/codecov-action@v3 |
38 | | -# with: |
39 | | -# files: lcov.info |
40 | | -# docs: |
41 | | -# name: Documentation |
42 | | -# runs-on: ubuntu-latest |
43 | | -# permissions: |
44 | | -# contents: write |
45 | | -# steps: |
46 | | -# - uses: actions/checkout@v2 |
47 | | -# - uses: julia-actions/setup-julia@v1 |
48 | | -# with: |
49 | | -# version: '1' |
50 | | -# - uses: julia-actions/julia-buildpkg@v1 |
51 | | -# - uses: julia-actions/julia-docdeploy@v1 |
52 | | -# env: |
53 | | -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
54 | | -# - run: | |
55 | | -# julia --project=docs -e ' |
56 | | -# using Documenter: DocMeta, doctest |
57 | | -# using TensorInference |
58 | | -# DocMeta.setdocmeta!(TensorInference, :DocTestSetup, :(using TensorInference); recursive=true) |
59 | | -# doctest(TensorInference)' |
| 1 | +name: CI |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: |
| 5 | + - main |
| 6 | + 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/') }} |
| 13 | +jobs: |
| 14 | + test: |
| 15 | + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} |
| 16 | + runs-on: ${{ matrix.os }} |
| 17 | + strategy: |
| 18 | + fail-fast: false |
| 19 | + matrix: |
| 20 | + version: |
| 21 | + - '1' |
| 22 | + - 'nightly' |
| 23 | + os: |
| 24 | + - ubuntu-latest |
| 25 | + arch: |
| 26 | + - x64 |
| 27 | + steps: |
| 28 | + - uses: actions/checkout@v2 |
| 29 | + - uses: julia-actions/setup-julia@v1 |
| 30 | + with: |
| 31 | + version: ${{ matrix.version }} |
| 32 | + arch: ${{ matrix.arch }} |
| 33 | + - uses: julia-actions/cache@v1 |
| 34 | + - uses: julia-actions/julia-buildpkg@v1 |
| 35 | + - uses: julia-actions/julia-runtest@v1 |
| 36 | + - uses: julia-actions/julia-processcoverage@v1 |
| 37 | + - uses: codecov/codecov-action@v3 |
| 38 | + with: |
| 39 | + files: lcov.info |
| 40 | + docs: |
| 41 | + name: Documentation |
| 42 | + runs-on: ubuntu-latest |
| 43 | + permissions: |
| 44 | + contents: write |
| 45 | + steps: |
| 46 | + - uses: actions/checkout@v2 |
| 47 | + - uses: julia-actions/setup-julia@v1 |
| 48 | + with: |
| 49 | + version: '1' |
| 50 | + - uses: julia-actions/julia-buildpkg@v1 |
| 51 | + - uses: julia-actions/julia-docdeploy@v1 |
| 52 | + env: |
| 53 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 54 | + - run: | |
| 55 | + julia --project=docs -e ' |
| 56 | + using Documenter: DocMeta, doctest |
| 57 | + using TensorInference |
| 58 | + DocMeta.setdocmeta!(TensorInference, :DocTestSetup, :(using TensorInference); recursive=true) |
| 59 | + doctest(TensorInference)' |
0 commit comments