From 2707c27fa0d00555ead4ffd6502fed86b1f2a074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20K=C3=B6nig?= Date: Mon, 9 Oct 2023 14:50:26 +0200 Subject: [PATCH] fix Project.toml format for aqua --- .github/workflows/CompatHelper.yml | 45 ++++++++++++++++++++++++++++++ Project.toml | 8 +++--- test/runtests.jl | 2 +- 3 files changed, 50 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/CompatHelper.yml diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml new file mode 100644 index 0000000..37eee93 --- /dev/null +++ b/.github/workflows/CompatHelper.yml @@ -0,0 +1,45 @@ +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@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 }} + # COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }} \ No newline at end of file diff --git a/Project.toml b/Project.toml index 162bad4..6166bab 100644 --- a/Project.toml +++ b/Project.toml @@ -15,14 +15,14 @@ TimeZones = "f269a46b-ccf7-5d73-abea-4c690281aa53" UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed" [compat] -julia = "1.6" -CSV = "0.10" +CSV = "0.10" CodecZlib = "0.7" DataFrames = "1.5" HTTP = "1.7" +JSON3 = "1.12" TimeZones = "1.9" UnPack = "1.0" -JSON3 = "1.12" +julia = "1.6" [extras] Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" @@ -30,4 +30,4 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test", "StatsBase", "Aqua"] +test = ["Test", "StatsBase", "Aqua"] \ No newline at end of file diff --git a/test/runtests.jl b/test/runtests.jl index 1def9f0..aa4b8a2 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -89,4 +89,4 @@ else end #Aqua tests -Aqua.test_all(InfluxDBClient,ambiguities=false,deps_compat=false) \ No newline at end of file +Aqua.test_all(InfluxDBClient,ambiguities=false,deps_compat=true) \ No newline at end of file