Skip to content

Commit 9962e89

Browse files
authored
Adjust compat bounds and CI Julia versions (episode 2) (#53)
New version of #51 - Bump SWG version to 1.5.0 - Bump Julia compat to 1.6 instead of 1 - Add compat bounds to stdlib and test deps - Update versions of GitHub actions - Run CI on `min`, `1` and `pre`
1 parent 33a69cb commit 9962e89

File tree

5 files changed

+31
-253
lines changed

5 files changed

+31
-253
lines changed

.github/workflows/CI.yml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,44 +18,43 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
version:
21-
- '1.6'
21+
- 'min'
2222
- '1'
23-
- 'nightly'
23+
- 'pre'
2424
os:
2525
- ubuntu-latest
2626
arch:
2727
- x64
2828
steps:
29-
- uses: actions/checkout@v2
30-
- uses: julia-actions/setup-julia@v1
29+
- uses: actions/checkout@v4
30+
- uses: julia-actions/setup-julia@v2
3131
with:
3232
version: ${{ matrix.version }}
3333
arch: ${{ matrix.arch }}
34-
- uses: julia-actions/cache@v1
34+
- uses: julia-actions/cache@v2
3535
- uses: julia-actions/julia-buildpkg@v1
3636
- uses: julia-actions/julia-runtest@v1
3737
- uses: julia-actions/julia-processcoverage@v1
38-
- uses: codecov/codecov-action@v2
38+
- uses: codecov/codecov-action@v5
3939
with:
4040
files: lcov.info
41+
token: ${{ secrets.CODECOV_TOKEN }}
4142
docs:
42-
name: Documentation
43-
runs-on: ubuntu-latest
4443
permissions:
4544
contents: write
45+
pull-requests: read
4646
statuses: write
47+
runs-on: ubuntu-latest
4748
steps:
48-
- uses: actions/checkout@v2
49-
- uses: julia-actions/setup-julia@v1
49+
- uses: actions/checkout@v4
50+
- uses: julia-actions/setup-julia@v2
5051
with:
5152
version: '1'
52-
- uses: julia-actions/julia-buildpkg@v1
53-
- uses: julia-actions/julia-docdeploy@v1
53+
- uses: julia-actions/cache@v2
54+
- name: Install dependencies
55+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
56+
- name: Build and deploy
5457
env:
55-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
- run: |
57-
julia --project=docs -e '
58-
using Documenter: DocMeta, doctest
59-
using SimpleWeightedGraphs
60-
DocMeta.setdocmeta!(SimpleWeightedGraphs, :DocTestSetup, :(using SimpleWeightedGraphs); recursive=true)
61-
doctest(SimpleWeightedGraphs)'
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
59+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
60+
run: julia --project=docs/ docs/make.jl

Project.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SimpleWeightedGraphs"
22
uuid = "47aef6b3-ad0c-573a-a1e2-d07658019622"
33
authors = ["JuliaGraphs contributors"]
4-
version = "1.4.0"
4+
version = "1.5.0"
55

66
[deps]
77
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
@@ -10,8 +10,15 @@ Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
1010
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1111

1212
[compat]
13+
Aqua = "0.8"
14+
Documenter = "1"
1315
Graphs = "1.7"
14-
julia = "1"
16+
JuliaFormatter = "1"
17+
LinearAlgebra = "1.6"
18+
Markdown = "1.6"
19+
SparseArrays = "1.6"
20+
Test = "1.6"
21+
julia = "1.6"
1522

1623
[extras]
1724
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"

docs/Manifest.toml

Lines changed: 0 additions & 223 deletions
This file was deleted.

docs/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
44
SimpleWeightedGraphs = "47aef6b3-ad0c-573a-a1e2-d07658019622"
5+
6+
[compat]
7+
Documenter = "1"

docs/make.jl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,9 @@ DocMeta.setdocmeta!(
99
makedocs(;
1010
modules=[SimpleWeightedGraphs],
1111
authors="Seth Bromberger and contributors",
12-
repo="https://github.com/JuliaGraphs/SimpleWeightedGraphs.jl/blob/{commit}{path}#{line}",
1312
sitename="SimpleWeightedGraphs.jl",
14-
format=Documenter.HTML(;
15-
prettyurls=get(ENV, "CI", "false") == "true",
16-
canonical="https://JuliaGraphs.github.io/SimpleWeightedGraphs.jl",
17-
edit_link="master",
18-
assets=String[],
19-
),
13+
format=Documenter.HTML(),
2014
pages=["Home" => "index.md", "Tutorial" => "tutorial.md", "API reference" => "api.md"],
21-
linkcheck=true,
22-
strict=true,
2315
)
2416

2517
deploydocs(; repo="github.com/JuliaGraphs/SimpleWeightedGraphs.jl", devbranch="master")

0 commit comments

Comments
 (0)