From 6125b5e31dfd12718fab118454636fc1344908f6 Mon Sep 17 00:00:00 2001 From: jeremie Date: Mon, 15 May 2023 20:31:00 -0400 Subject: [PATCH] bump version update CompatHelper --- .github/workflows/CompatHelper.yml | 36 ++++++++++++++++++++++++++---- Project.toml | 4 ++-- 2 files changed, 34 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index cba9134..7a9c79f 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -3,14 +3,42 @@ on: schedule: - cron: 0 0 * * * workflow_dispatch: +permissions: + contents: write + pull-requests: write jobs: CompatHelper: runs-on: ubuntu-latest steps: - - name: Pkg.add("CompatHelper") - run: julia -e 'using Pkg; Pkg.add("CompatHelper")' - - name: CompatHelper.main() + - 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@v1 + 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.DOCUMENTER_KEY }} - run: julia -e 'using CompatHelper; CompatHelper.main()' diff --git a/Project.toml b/Project.toml index 64c421f..0112a77 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "EvoLinear" uuid = "ab853011-1780-437f-b4b5-5de6f4777246" authors = ["jeremie and contributors"] -version = "0.4.1" +version = "0.4.2" [deps] Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" @@ -21,7 +21,7 @@ Flux = "0.13" LoopVectorization = "0.12" MLJModelInterface = "1.0" Optimisers = "0.2" -StatsBase = "0.33" +StatsBase = "0.33, 0.34" julia = "1.6" [extras]