Skip to content

Commit 6d9cddf

Browse files
authored
Create dependabot.yml and update action versions (#30)
* Create dependabot.yml From https://discourse.julialang.org/t/psa-use-dependabot-to-update-github-actions-automatically/96001 * Update action versions
1 parent 59e7e91 commit 6d9cddf

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/" # Location of package manifests
6+
schedule:
7+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -31,46 +31,39 @@ jobs:
3131
arch:
3232
- x64
3333
steps:
34-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v4
3535
- uses: julia-actions/setup-julia@v2
3636
with:
3737
version: ${{ matrix.version }}
3838
arch: ${{ matrix.arch }}
39-
- uses: actions/cache@v1
40-
env:
41-
cache-name: cache-artifacts
42-
with:
43-
path: ~/.julia/artifacts
44-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
45-
restore-keys: |
46-
${{ runner.os }}-test-${{ env.cache-name }}-
47-
${{ runner.os }}-test-
48-
${{ runner.os }}-
39+
- uses: julia-actions/cache@v2
4940
- uses: julia-actions/julia-buildpkg@v1
5041
- uses: julia-actions/julia-runtest@v1
5142
- uses: julia-actions/julia-processcoverage@v1
52-
- uses: codecov/codecov-action@v1
43+
- uses: codecov/codecov-action@v5
5344
with:
54-
file: lcov.info
45+
files: lcov.info
46+
token: ${{ secrets.CODECOV_TOKEN }}
5547
docs:
5648
name: Documentation
5749
runs-on: ubuntu-latest
5850
steps:
59-
- uses: actions/checkout@v2
51+
- uses: actions/checkout@v4
6052
- uses: julia-actions/setup-julia@v2
6153
with:
6254
version: 'lts'
63-
- run: |
64-
julia --project=docs -e '
65-
using Pkg
66-
Pkg.develop(PackageSpec(path=pwd()))
67-
Pkg.instantiate()'
68-
- run: |
69-
julia --project=docs -e '
70-
import Documenter: doctest, DocMeta
71-
using LegendrePolynomials
72-
DocMeta.setdocmeta!(LegendrePolynomials, :DocTestSetup, :(using LegendrePolynomials); recursive=true)
73-
doctest(LegendrePolynomials)'
55+
- uses: julia-actions/cache@v2
56+
- shell: julia --color=yes --project=docs {0}
57+
run: |
58+
using Pkg
59+
Pkg.develop(PackageSpec(path=pwd()))
60+
Pkg.instantiate()
61+
- shell: julia --color=yes --project=docs {0}
62+
run: |
63+
import Documenter: doctest, DocMeta
64+
using LegendrePolynomials
65+
DocMeta.setdocmeta!(LegendrePolynomials, :DocTestSetup, :(using LegendrePolynomials); recursive=true)
66+
doctest(LegendrePolynomials)
7467
- run: julia --project=docs docs/make.jl
7568
env:
7669
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)