|
1 | 1 | name: Tests
|
2 |
| - |
3 | 2 | on:
|
4 | 3 | push:
|
5 | 4 | branches:
|
|
9 | 8 | - "*"
|
10 | 9 | schedule:
|
11 | 10 | - cron: '0 0 * * *' ## daily
|
12 |
| - |
| 11 | +concurrency: |
| 12 | + # Skip intermediate builds: always. |
| 13 | + # Cancel intermediate builds: only if it is a pull request build. |
| 14 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 15 | + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
13 | 16 | jobs:
|
14 | 17 | test:
|
15 |
| - name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - x64 |
| 18 | + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} |
16 | 19 | runs-on: ${{ matrix.os }}
|
17 |
| - continue-on-error: ${{ matrix.julia-version == 'nightly' }} |
18 | 20 | strategy:
|
19 | 21 | fail-fast: false
|
20 | 22 | matrix:
|
21 |
| - julia-version: |
| 23 | + version: |
22 | 24 | - '1.9'
|
23 | 25 | - 'nightly'
|
24 |
| - julia-arch: |
25 |
| - - x64 |
26 | 26 | os:
|
27 | 27 | - ubuntu-latest
|
28 | 28 | # currently broken: https://github.com/homalg-project/CapAndHomalg.jl/issues/70
|
29 | 29 | #- macOS-latest
|
30 |
| - |
31 |
| - env: |
32 |
| - JULIA_TRACK_COVERAGE: yes |
33 |
| - |
| 30 | + arch: |
| 31 | + - x64 |
| 32 | + steps: |
| 33 | + - uses: actions/checkout@v4 |
| 34 | + - uses: julia-actions/setup-julia@v1 |
| 35 | + with: |
| 36 | + version: ${{ matrix.version }} |
| 37 | + arch: ${{ matrix.arch }} |
| 38 | + - uses: julia-actions/cache@v1 |
| 39 | + - uses: julia-actions/julia-buildpkg@v1 |
| 40 | + - uses: julia-actions/julia-runtest@v1 |
| 41 | + - uses: julia-actions/julia-processcoverage@v1 |
| 42 | + - uses: codecov/codecov-action@v3 |
| 43 | + with: |
| 44 | + files: lcov.info |
| 45 | + docs: |
| 46 | + name: Documentation |
| 47 | + runs-on: ubuntu-latest |
| 48 | + permissions: |
| 49 | + contents: write |
| 50 | + statuses: write |
34 | 51 | steps:
|
35 |
| - - run: '[ "$GITHUB_EVENT_NAME" = "pull_request" ] || curl --fail -X PUT -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/$GITHUB_REPOSITORY/actions/workflows/Tests.yml/enable' |
36 |
| - - uses: actions/checkout@v3 |
37 |
| - |
38 |
| - - name: Setup Julia environment |
39 |
| - uses: julia-actions/setup-julia@latest |
| 52 | + - uses: actions/checkout@v4 |
| 53 | + - uses: julia-actions/setup-julia@v1 |
40 | 54 | with:
|
41 |
| - version: ${{ matrix.julia-version }} |
42 |
| - |
43 |
| - - name: "Build package" |
44 |
| - uses: julia-actions/julia-buildpkg@latest |
45 |
| - |
46 |
| - - name: "Run tests" |
47 |
| - uses: julia-actions/julia-runtest@latest |
48 |
| - |
49 |
| - - name: "Process coverage" |
50 |
| - uses: julia-actions/julia-processcoverage@v1 |
51 |
| - |
52 |
| - - name: "Upload to codecov.io" |
53 |
| - uses: codecov/codecov-action@v3 |
| 55 | + version: '1' |
| 56 | + - uses: julia-actions/julia-buildpkg@v1 |
| 57 | + - uses: julia-actions/julia-docdeploy@v1 |
| 58 | + env: |
| 59 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 60 | + - run: | |
| 61 | + julia --project=docs -e ' |
| 62 | + using Documenter: DocMeta, doctest |
| 63 | + using HomalgProject |
| 64 | + DocMeta.setdocmeta!(HomalgProject, :DocTestSetup, :(using HomalgProject); recursive=true) |
| 65 | + doctest(HomalgProject)' |
0 commit comments