Skip to content

Commit 4b47f0b

Browse files
rename ci.yml to CI.yml
1 parent 1d4e9d2 commit 4b47f0b

1 file changed

Lines changed: 75 additions & 0 deletions

File tree

.github/workflows/CI.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: CI
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
test:
7+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
version:
13+
- '1.6'
14+
- '1'
15+
- 'nightly'
16+
os:
17+
- ubuntu-latest
18+
arch:
19+
- x64
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: julia-actions/setup-julia@v2
23+
with:
24+
version: ${{ matrix.version }}
25+
arch: ${{ matrix.arch }}
26+
- uses: actions/cache@v1
27+
env:
28+
cache-name: cache-artifacts
29+
with:
30+
path: ~/.julia/artifacts
31+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
32+
restore-keys: |
33+
${{ runner.os }}-test-${{ env.cache-name }}-
34+
${{ runner.os }}-test-
35+
${{ runner.os }}-
36+
- uses: julia-actions/julia-buildpkg@latest
37+
- run: |
38+
sudo apt update
39+
sudo apt install python3-matplotlib
40+
git config --global user.name Tester
41+
git config --global user.email te@st.er
42+
- uses: julia-actions/julia-runtest@latest
43+
continue-on-error: ${{ matrix.version == 'nightly' }}
44+
- uses: julia-actions/julia-processcoverage@v1
45+
- uses: codecov/codecov-action@v4
46+
with:
47+
file: lcov.info
48+
token: ${{ secrets.CODECOV_TOKEN }}
49+
docs:
50+
name: Documentation
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v4
54+
- uses: julia-actions/setup-julia@v2
55+
with:
56+
version: '1'
57+
- run: |
58+
sudo apt-get install python3-matplotlib
59+
git config --global user.name name
60+
git config --global user.email email
61+
git config --global github.user username
62+
- run: |
63+
julia --project=docs -e '
64+
using Pkg
65+
Pkg.develop(PackageSpec(path=pwd()))
66+
Pkg.instantiate()'
67+
- run: |
68+
julia --project=docs -e '
69+
using Documenter: doctest
70+
using APTDecoder
71+
doctest(APTDecoder)'
72+
- run: julia --project=docs docs/make.jl
73+
env:
74+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)