Skip to content

Commit 2be4ecd

Browse files
authored
ci: use [sources], fix codecov (#87)
1 parent 5a52b02 commit 2be4ecd

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- uses: julia-actions/julia-processcoverage@v1
6464
- uses: codecov/codecov-action@v5
6565
with:
66-
file: lcov.info
66+
token: ${{ secrets.CODECOV_TOKEN }}
6767

6868
aqua:
6969
name: Aqua
@@ -129,7 +129,7 @@ jobs:
129129
- uses: julia-actions/julia-processcoverage@v1
130130
- uses: codecov/codecov-action@v5
131131
with:
132-
file: lcov.info
132+
token: ${{ secrets.CODECOV_TOKEN }}
133133

134134
doctest:
135135
name: Doctest
@@ -138,17 +138,15 @@ jobs:
138138
- uses: actions/checkout@v4
139139
- uses: julia-actions/setup-julia@v2
140140
with:
141-
version: "1.9"
141+
# we'll restrict doctests to a minor version, to avoid failures due
142+
# to printing differences between Julia (minor) versions
143+
version: "1.11"
142144
- uses: julia-actions/julia-buildpkg@v1
143145
- name: Set up documentation environment
144-
run: |
145-
using Pkg
146-
Pkg.develop(path=".")
147-
Pkg.instantiate()
148-
shell: julia --color=yes --project=docs/ {0}
146+
run: make docs-manifest
149147
- name: Check doctests
150-
run: julia --color=yes --project=docs/ --code-coverage docs/make.jl --doctest
148+
run: make check-doctests
151149
- uses: julia-actions/julia-processcoverage@v1
152150
- uses: codecov/codecov-action@v5
153151
with:
154-
file: lcov.info
152+
token: ${{ secrets.CODECOV_TOKEN }}

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ help:
88

99
docs/Manifest.toml: docs/Project.toml
1010
@echo "Instantiating the docs/ environment:"
11-
${JULIA} --color=yes --project=docs/ -e 'using Pkg; Pkg.develop(path="."); Pkg.instantiate()'
11+
${JULIA} --color=yes --project=docs/ -e 'using Pkg; Pkg.instantiate()'
1212

1313
docs-manifest:
1414
rm -f docs/Manifest.toml
@@ -20,6 +20,9 @@ docs: docs/Manifest.toml
2020
fix-doctests: docs/Manifest.toml
2121
${JULIA} --project=docs/ docs/make.jl --fix-doctests
2222

23+
check-doctests: docs/Manifest.toml
24+
${JULIA} --project=docs/ docs/make.jl --doctest
25+
2326
changelog:
2427
${JULIA} --project=docs/ docs/changelog.jl
2528

docs/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ URIs = "5c2747f8-b7ea-4ff2-ba2e-563bfd36b1d4"
1212
Changelog = "1"
1313
Documenter = "1"
1414
DocumenterMermaid = "0.1"
15+
16+
[sources]
17+
JuliaHub = { path = ".." }

0 commit comments

Comments
 (0)