Skip to content

Commit

Permalink
fix Project.toml format for aqua
Browse files Browse the repository at this point in the history
  • Loading branch information
kafisatz committed Oct 9, 2023
1 parent 567ab99 commit 2707c27
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 5 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -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 }}
8 changes: 4 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ 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"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "StatsBase", "Aqua"]
test = ["Test", "StatsBase", "Aqua"]
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ else
end

#Aqua tests
Aqua.test_all(InfluxDBClient,ambiguities=false,deps_compat=false)
Aqua.test_all(InfluxDBClient,ambiguities=false,deps_compat=true)

0 comments on commit 2707c27

Please sign in to comment.