From ab8a53c12f66f037c048fa55129b8518e6de0af4 Mon Sep 17 00:00:00 2001 From: Yuan-Ru Lin Date: Thu, 4 Sep 2025 15:12:46 -0700 Subject: [PATCH 1/6] Add CompatHelper and Downgrade workflows --- .github/workflows/CompatHelper.yml | 44 ++++++++++++++++++++++++++++++ .github/workflows/Downgrade.yml | 28 +++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 .github/workflows/CompatHelper.yml create mode 100644 .github/workflows/Downgrade.yml diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml new file mode 100644 index 0000000..e4e4cb8 --- /dev/null +++ b/.github/workflows/CompatHelper.yml @@ -0,0 +1,44 @@ +name: CompatHelper +on: + schedule: + - cron: 0 0 * * * + workflow_dispatch: +permissions: + contents: write + pull-requests: write +jobs: + CompatHelper: + runs-on: ubuntu-latest + steps: + - name: Check if Julia is already available in the PATH + id: julia_in_path + run: which julia + continue-on-error: true + - name: Install Julia, but only if it is not already available in the PATH + uses: julia-actions/setup-julia@v2 + with: + version: '1' + arch: ${{ runner.arch }} + if: steps.julia_in_path.outcome != 'success' + - name: "Add the General registry via Git" + run: | + import Pkg + ENV["JULIA_PKG_SERVER"] = "" + Pkg.Registry.add("General") + shell: julia --color=yes {0} + - name: "Install CompatHelper" + run: | + import Pkg + name = "CompatHelper" + uuid = "aa819f21-2bde-4658-8897-bab36330d9b7" + version = "3" + Pkg.add(; name, uuid, version) + shell: julia --color=yes {0} + - name: "Run CompatHelper" + run: | + import CompatHelper + CompatHelper.main() + shell: julia --color=yes {0} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }} diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml new file mode 100644 index 0000000..8c5603c --- /dev/null +++ b/.github/workflows/Downgrade.yml @@ -0,0 +1,28 @@ +name: Downgrade +on: + pull_request: + branches: + - main + paths-ignore: + - 'docs/**' + push: + branches: + - main + paths-ignore: + - 'docs/**' +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + version: ['1'] + steps: + - uses: actions/checkout@v5 + - uses: julia-actions/setup-julia@v2 + with: + version: ${{ matrix.version }} + - uses: cjdoris/julia-downgrade-compat-action@v1 + with: + skip: Pkg,TOML + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 From 4a1d64393b5bb927fca4fef8372265980ccdf7ff Mon Sep 17 00:00:00 2001 From: Yuan-Ru Lin Date: Thu, 4 Sep 2025 15:35:12 -0700 Subject: [PATCH 2/6] Lower compat bound --- Project.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index fa44cb5..8033326 100644 --- a/Project.toml +++ b/Project.toml @@ -24,13 +24,13 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" DoubleBetaDecayGeneratorsGeant4Ext = ["Geant4", "StaticArrays"] [compat] -Artifacts = "1.10" -DelimitedFiles = "1.9" +Artifacts = "1" +DelimitedFiles = "1" EmpiricalDistributions = "0.3.9" -LinearAlgebra = "1.10" -Printf = "1.10" +LinearAlgebra = "1" +Printf = "1" ProgressMeter = "1.10" -Random = "1.10" +Random = "1" Rotations = "1.7" StatsBase = "0.34" julia = "1.10" From 7d3b832cdacbd396db4a9285833215f7da93be5c Mon Sep 17 00:00:00 2001 From: Yuan-Ru Lin Date: Thu, 4 Sep 2025 15:37:36 -0700 Subject: [PATCH 3/6] Try again --- Project.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index 8033326..51adf47 100644 --- a/Project.toml +++ b/Project.toml @@ -24,13 +24,13 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" DoubleBetaDecayGeneratorsGeant4Ext = ["Geant4", "StaticArrays"] [compat] -Artifacts = "1" -DelimitedFiles = "1" +Artifacts = "^1.10" +DelimitedFiles = "^1.10" EmpiricalDistributions = "0.3.9" -LinearAlgebra = "1" -Printf = "1" +LinearAlgebra = "^1.10" +Printf = "^1.10" ProgressMeter = "1.10" -Random = "1" +Random = "^1.10" Rotations = "1.7" StatsBase = "0.34" julia = "1.10" From ac1464fe05d103b235d44b6bc6cb32d7dc6c9fda Mon Sep 17 00:00:00 2001 From: Yuan-Ru Lin Date: Thu, 4 Sep 2025 15:40:38 -0700 Subject: [PATCH 4/6] Again --- Project.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 51adf47..c0d57b8 100644 --- a/Project.toml +++ b/Project.toml @@ -27,10 +27,10 @@ DoubleBetaDecayGeneratorsGeant4Ext = ["Geant4", "StaticArrays"] Artifacts = "^1.10" DelimitedFiles = "^1.10" EmpiricalDistributions = "0.3.9" -LinearAlgebra = "^1.10" -Printf = "^1.10" +LinearAlgebra = "<0.0.1, 1" +Printf = "<0.0.1, 1" ProgressMeter = "1.10" -Random = "^1.10" +Random = "<0.0.1, 1" Rotations = "1.7" StatsBase = "0.34" julia = "1.10" From 156cf88fde7e6a725adfd546ef66e01957804ae7 Mon Sep 17 00:00:00 2001 From: Yuan-Ru Lin Date: Thu, 4 Sep 2025 15:41:35 -0700 Subject: [PATCH 5/6] Again --- Project.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index c0d57b8..a8868d5 100644 --- a/Project.toml +++ b/Project.toml @@ -24,8 +24,8 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" DoubleBetaDecayGeneratorsGeant4Ext = ["Geant4", "StaticArrays"] [compat] -Artifacts = "^1.10" -DelimitedFiles = "^1.10" +Artifacts = "<0.0.1, 1" +DelimitedFiles = "<0.0.1, 1" EmpiricalDistributions = "0.3.9" LinearAlgebra = "<0.0.1, 1" Printf = "<0.0.1, 1" From 7aacebac7846814835257677f39efc6f249aafa2 Mon Sep 17 00:00:00 2001 From: Yuan-Ru Lin Date: Thu, 4 Sep 2025 15:44:13 -0700 Subject: [PATCH 6/6] Add DocPreviewCleanup --- .github/workflows/DocPreviewCleanup.yml | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/DocPreviewCleanup.yml diff --git a/.github/workflows/DocPreviewCleanup.yml b/.github/workflows/DocPreviewCleanup.yml new file mode 100644 index 0000000..f8a1e52 --- /dev/null +++ b/.github/workflows/DocPreviewCleanup.yml @@ -0,0 +1,33 @@ +name: Doc Preview Cleanup + +on: + pull_request: + types: [closed] + +# Ensure that only one "Doc Preview Cleanup" workflow is force pushing at a time +concurrency: + group: doc-preview-cleanup + cancel-in-progress: false + +jobs: + doc-preview-cleanup: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout gh-pages branch + uses: actions/checkout@v5 + with: + ref: gh-pages + - name: Delete preview and history + push changes + run: | + if [ -d "${preview_dir}" ]; then + git config user.name "Documenter.jl" + git config user.email "documenter@juliadocs.github.io" + git rm -rf "${preview_dir}" + git commit -m "delete preview" + git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree}) + git push --force origin gh-pages-new:gh-pages + fi + env: + preview_dir: previews/PR${{ github.event.number }}