forked from thofma/Hecke.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (81 loc) · 2.77 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Run tests
on:
push:
branches:
- 'master'
- 'release-'
tags: '*'
pull_request:
schedule:
# Every day at 3:05 AM UTC
- cron: '5 3 * * *'
concurrency:
# group by workflow and ref; the last slightly strange component ensures that for pull
# requests, we limit to 1 concurrent job, but for the master branch we don't
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }}
# Cancel intermediate builds, but only if it is a pull request build.
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.os == 'windows-latest' }}
strategy:
fail-fast: false
matrix:
julia-version:
- '1.6'
- '1.9' # to be removed in the near future
- '1.10'
- 'nightly'
os:
- ubuntu-latest
include:
# Add a few windows and macOS jobs (not too many, the number we can run in parallel is limited)
- julia-version: '1.10'
os: macOS-latest
- julia-version: '1.10'
os: windows-latest
steps:
- uses: actions/checkout@v4
- name: "Set up Julia"
uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
- name: "Cache artifacts"
uses: julia-actions/cache@v2
- name: "Build package"
uses: julia-actions/julia-buildpkg@v1
- name: "Run tests"
uses: julia-actions/julia-runtest@v1
env:
HECKE_TEST_PARALLEL: "2"
with:
depwarn: error
# - name: "Process code coverage"
# uses: julia-actions/julia-processcoverage@v1
# - name: "Upload coverage data to Codecov"
# uses: codecov/codecov-action@v3
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- run: |
echo $RELEASE_VERSION
echo ${{ env.RELEASE_VERSION }}
- run: |
git config user.name github-actions # mike needs a user name, but we do not push the commit, so all is fine
git config user.email [email protected]
- uses: actions/setup-python@v4
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer
- uses: julia-actions/setup-julia@v2
with:
version: '1.10'
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-docdeploy@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}