Skip to content

Commit b61ca51

Browse files
author
Nathan Ortega
authored
Merge branch 'feature/fix-compat-helper-setup' into compathelper/new_version/2025-09-13-20-51-50-757-01631475918
2 parents 29c696b + f3d8bb9 commit b61ca51

2 files changed

Lines changed: 36 additions & 8 deletions

File tree

.github/workflows/CompatHelper.yml

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,44 @@
11
name: CompatHelper
22
on:
33
schedule:
4-
- cron: '00 00 * * *'
4+
- cron: 0 0 * * *
55
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
69
jobs:
710
CompatHelper:
811
runs-on: ubuntu-latest
912
steps:
10-
- name: Pkg.add("CompatHelper")
11-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
12-
- name: CompatHelper.main()
13+
- name: Check if Julia is already available in the PATH
14+
id: julia_in_path
15+
run: which julia
16+
continue-on-error: true
17+
- name: Install Julia, but only if it is not already available in the PATH
18+
uses: julia-actions/setup-julia@v2
19+
with:
20+
version: '1'
21+
arch: ${{ runner.arch }}
22+
if: steps.julia_in_path.outcome != 'success'
23+
- name: "Add the General registry via Git"
24+
run: |
25+
import Pkg
26+
ENV["JULIA_PKG_SERVER"] = ""
27+
Pkg.Registry.add("General")
28+
shell: julia --color=yes {0}
29+
- name: "Install CompatHelper"
30+
run: |
31+
import Pkg
32+
name = "CompatHelper"
33+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
34+
version = "3"
35+
Pkg.add(; name, uuid, version)
36+
shell: julia --color=yes {0}
37+
- name: "Run CompatHelper"
38+
run: |
39+
import CompatHelper
40+
CompatHelper.main()
41+
shell: julia --color=yes {0}
1342
env:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
GITHUB_TOKEN: ${{ secrets.OXYGEN_REPO_MANAGER_PAT }}
1544
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
16-
run: julia -e 'using CompatHelper; CompatHelper.main()'

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ WGLMakieExt = ["WGLMakie", "Bonito"]
3737
[compat]
3838
Bonito = "^4"
3939
CairoMakie = "^0.13, 0.15"
40-
DataStructures = "^0.18.15"
40+
DataStructures = "^0.18.15, 0.19"
4141
Dates = "^1"
4242
HTTP = "^1.8"
4343
JSON3 = "^1.9"
@@ -53,7 +53,7 @@ Statistics = "^1"
5353
StructTypes = "^1"
5454
Suppressor = "^0.2.6"
5555
TimeZones = "^1.20.0"
56-
WGLMakie = "^0.11"
56+
WGLMakie = "^0.11, 0.13"
5757
julia = "^1.10"
5858

5959
[extras]

0 commit comments

Comments
 (0)