Skip to content

Commit dd69651

Browse files
committed
ci update
1 parent 63d7b30 commit dd69651

File tree

1 file changed

+48
-26
lines changed

1 file changed

+48
-26
lines changed

.github/workflows/ci.yml

+48-26
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,56 @@
1-
name: Unit Tests
2-
3-
# Controls when the action will run. Triggers the workflow on push or pull request
4-
# events but only for the master branch
5-
on:
6-
pull_request:
1+
name: Unit Tests
2+
on:
73
push:
4+
branches: [master]
5+
tags: ["*"]
6+
pull_request:
87
workflow_dispatch:
9-
10-
8+
permissions:
9+
actions: write
10+
contents: read
1111
env:
1212
DATADEPS_ALWAYS_ACCEPT: 1
1313
JIVE_PROCS: 1
14-
1514
jobs:
16-
build:
17-
runs-on: ubuntu-20.04
18-
15+
test:
16+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
version:
22+
- '1.6'
23+
- '1'
24+
- 'nightly'
25+
os:
26+
- ubuntu-latest
27+
arch:
28+
- x64
1929
steps:
20-
21-
- uses: actions/checkout@v2
22-
- uses: julia-actions/setup-julia@latest
30+
- uses: actions/checkout@v4
31+
- uses: julia-actions/setup-julia@v2
2332
with:
24-
version: 1.7
25-
26-
# Runs a single command using the runners shell
27-
- name: Unit Tests
28-
run: |
29-
julia --project --check-bounds=yes --depwarn=yes -e 'import Pkg; Pkg.test(; coverage=true)'
30-
31-
- name: Codecov Upload
32-
run: |
33-
julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder());'
34-
33+
version: ${{ matrix.version }}
34+
arch: ${{ matrix.arch }}
35+
- uses: julia-actions/cache@v1
36+
- uses: julia-actions/julia-buildpkg@v1
37+
- uses: julia-actions/julia-runtest@v1
38+
- uses: julia-actions/julia-processcoverage@v1
39+
- uses: codecov/codecov-action@v2
40+
with:
41+
file: lcov.info
42+
docs:
43+
name: Documentation
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v4
47+
- uses: julia-actions/julia-buildpkg@latest
48+
- run: |
49+
sudo apt-get -qq update
50+
sudo apt install -y pdf2svg texlive-latex-base texlive-binaries texlive-pictures texlive-latex-extra texlive-luatex
51+
luatex -v
52+
pdflatex -v
53+
- uses: julia-actions/julia-docdeploy@latest
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)