Skip to content

Commit bc4768f

Browse files
committed
clean up tooling (via PkgSkeleton.jl)
1 parent ae7a7b3 commit bc4768f

File tree

5 files changed

+69
-25
lines changed

5 files changed

+69
-25
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
arch:
2626
- x64
2727
steps:
28-
- uses: actions/checkout@v2
29-
- uses: julia-actions/setup-julia@v1
28+
- uses: actions/checkout@v4
29+
- uses: julia-actions/setup-julia@v2
3030
with:
3131
version: ${{ matrix.version }}
3232
arch: ${{ matrix.arch }}

.github/workflows/CompatHelper.yml

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,47 @@
11
# see the docs at https://github.com/JuliaRegistries/CompatHelper.jl
22

33
name: CompatHelper
4-
54
on:
65
schedule:
7-
- cron: '00 00 * * *'
6+
- cron: 0 0 * * *
87
workflow_dispatch:
9-
8+
permissions:
9+
contents: write
10+
pull-requests: write
1011
jobs:
1112
CompatHelper:
12-
runs-on: ${{ matrix.os }}
13-
strategy:
14-
matrix:
15-
julia-version: [1]
16-
julia-arch: [x86]
17-
os: [ubuntu-latest]
13+
runs-on: ubuntu-latest
1814
steps:
19-
- name: Pkg.add("CompatHelper")
20-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
21-
- name: CompatHelper.main()
15+
- name: Check if Julia is already available in the PATH
16+
id: julia_in_path
17+
run: which julia
18+
continue-on-error: true
19+
- name: Install Julia, but only if it is not already available in the PATH
20+
uses: julia-actions/setup-julia@v2
21+
with:
22+
version: '1'
23+
arch: ${{ runner.arch }}
24+
if: steps.julia_in_path.outcome != 'success'
25+
- name: "Add the General registry via Git"
26+
run: |
27+
import Pkg
28+
ENV["JULIA_PKG_SERVER"] = ""
29+
Pkg.Registry.add("General")
30+
shell: julia --color=yes {0}
31+
- name: "Install CompatHelper"
32+
run: |
33+
import Pkg
34+
name = "CompatHelper"
35+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
36+
version = "3"
37+
Pkg.add(; name, uuid, version)
38+
shell: julia --color=yes {0}
39+
- name: "Run CompatHelper"
40+
run: |
41+
import CompatHelper
42+
CompatHelper.main()
43+
shell: julia --color=yes {0}
2244
env:
2345
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24-
run: julia -e 'using CompatHelper; CompatHelper.main()'
46+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
47+
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}

.github/workflows/TagBot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@ on:
66
types:
77
- created
88
workflow_dispatch:
9+
inputs:
10+
lookback:
11+
default: 3
12+
permissions:
13+
actions: read
14+
checks: read
15+
contents: write
16+
deployments: read
17+
issues: read
18+
discussions: read
19+
packages: read
20+
pages: read
21+
pull-requests: read
22+
repository-projects: read
23+
security-events: read
24+
statuses: read
925
jobs:
1026
TagBot:
1127
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
@@ -14,4 +30,6 @@ jobs:
1430
- uses: JuliaRegistries/TagBot@v1
1531
with:
1632
token: ${{ secrets.GITHUB_TOKEN }}
33+
# Edit the following line to reflect the actual name of the GitHub Secret containing your private key
1734
ssh: ${{ secrets.DOCUMENTER_KEY }}
35+
# ssh: ${{ secrets.NAME_OF_MY_SSH_PRIVATE_KEY_SECRET }}

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ TransformedLogDensities = "f9bc47f6-f3f8-4f3b-ab21-f8bc73906f26"
1010
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
1111

1212
[compat]
13-
Documenter = "~0.27"
13+
Documenter = "1"

docs/make.jl

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
using Documenter, LogDensityProblems, ForwardDiff, Tracker, Zygote, BenchmarkTools,
2-
TransformedLogDensities, LogDensityProblemsAD
1+
# see documentation at https://juliadocs.github.io/Documenter.jl/stable/
2+
3+
using Documenter, LogDensityProblems
34

45
makedocs(
5-
sitename = "LogDensityProblems.jl",
6-
format = Documenter.HTML(; prettyurls = get(ENV, "CI", nothing) == "true"),
76
modules = [LogDensityProblems],
8-
clean = true,
7+
format = Documenter.HTML(; prettyurls = get(ENV, "CI", nothing) == "true"),
98
authors = "Tamás K. Papp",
10-
checkdocs = :export,
11-
strict = true,
12-
pages = Any["Documentation" => "index.md"]
9+
sitename = "LogDensityProblems.jl",
10+
pages = Any["index.md"]
11+
# strict = true,
12+
# clean = true,
13+
# checkdocs = :exports,
1314
)
1415

16+
# Some setup is needed for documentation deployment, see “Hosting Documentation” and
17+
# deploydocs() in the Documenter manual for more information.
1518
deploydocs(
1619
repo = "github.com/tpapp/LogDensityProblems.jl.git",
17-
push_preview = true,
20+
push_preview = true
1821
)

0 commit comments

Comments
 (0)