Skip to content

Commit 340f8ef

Browse files
committed
add ci
1 parent 130467b commit 340f8ef

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

.github/workflows/documentation.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags: '*'
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
permissions:
13+
contents: write
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: julia-actions/setup-julia@v1
18+
with:
19+
version: '1.10'
20+
- uses: julia-actions/cache@v1
21+
- name: Install dependencies
22+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
23+
- name: Build and deploy
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
run: julia --project=docs/ docs/make.jl
27+

.github/workflows/main.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
on:
3+
push:
4+
pull_request:
5+
jobs:
6+
test:
7+
name: julia ${{ matrix.julia-version }} ${{ matrix.julia-arch }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
julia-version: ['1.10', 'nightly']
12+
julia-arch: [x64]
13+
os: [ubuntu-latest] # windows-latest, macOS-latest]
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: julia-actions/setup-julia@v1
17+
with:
18+
version: ${{ matrix.julia-version }}
19+
arch: ${{ matrix.julia-arch }}
20+
- uses: julia-actions/cache@v1
21+
- uses: julia-actions/julia-buildpkg@v1
22+
- uses: julia-actions/julia-runtest@v1
23+
with:
24+
annotate: true
25+
- uses: julia-actions/julia-processcoverage@v1
26+
- uses: codecov/codecov-action@v3
27+
with:
28+
file: lcov.info
29+
env:
30+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)