-
Notifications
You must be signed in to change notification settings - Fork 4
64 lines (62 loc) · 2.14 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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: '3 12 * * *'
jobs:
test:
permissions:
contents: write
statuses: write
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: [1.10.2]
os: [ubuntu-latest]
python-version: ["3.11"]
project: ['GAlgebra']
architecture: ['x64']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup julia
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.architecture }}
show-versioninfo: true
- name: "Test"
run: |
julia --project=@. -e "using Pkg; Pkg.instantiate();"
julia --project=@. -e "using Pkg; Pkg.build(\"${{ matrix.project }}\");"
julia --project=@. -e "using Pkg; Pkg.test(\"${{ matrix.project }}\", coverage=true);"
- name: "Generate coverage"
env:
JULIA_PROJECT: "@."
run: julia --project=@. -e 'using Pkg; cd(Pkg.dir("GAlgebra")); Pkg.add("Coverage"); using Coverage; LCOV.writefile("coverage-lcov.info", Codecov.process_folder())'
if: success()
- name: "Submit coverage"
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
if: success()
- name: "Generate documentation"
run: |
julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate()'
julia --project=docs/ -e 'using Pkg; Pkg.build("GAlgebra")'
julia --project=docs/ docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
# See https://github.com/JuliaDocs/Documenter.jl/issues/1177
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
if: success()