Skip to content

Commit 045c449

Browse files
authored
Adjust compat bounds and CI Julia versions (#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 8128430 commit 045c449

File tree

3 files changed

+41
-243
lines changed

3 files changed

+41
-243
lines changed

.github/workflows/CI.yml

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,44 +18,58 @@ 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:
4243
name: Documentation
43-
runs-on: ubuntu-latest
44+
45+
on:
46+
push:
47+
branches:
48+
- main # update to match your development branch (master, main, dev, trunk, ...)
49+
tags: '*'
50+
pull_request:
51+
52+
concurrency:
53+
group: ${{ github.workflow }}-${{ github.ref }}
54+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
55+
56+
jobs:
57+
docs:
4458
permissions:
4559
contents: write
60+
pull-requests: read
4661
statuses: write
62+
runs-on: ubuntu-latest
4763
steps:
48-
- uses: actions/checkout@v2
49-
- uses: julia-actions/setup-julia@v1
64+
- uses: actions/checkout@v4
65+
- uses: julia-actions/setup-julia@v2
5066
with:
5167
version: '1'
52-
- uses: julia-actions/julia-buildpkg@v1
53-
- uses: julia-actions/julia-docdeploy@v1
68+
- uses: julia-actions/cache@v2
69+
- name: Install dependencies
70+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
71+
- name: Build and deploy
5472
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)'
73+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
74+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
75+
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.

0 commit comments

Comments
 (0)