diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml new file mode 100644 index 0000000..cba9134 --- /dev/null +++ b/.github/workflows/CompatHelper.yml @@ -0,0 +1,16 @@ +name: CompatHelper +on: + schedule: + - cron: 0 0 * * * + workflow_dispatch: +jobs: + CompatHelper: + runs-on: ubuntu-latest + steps: + - name: Pkg.add("CompatHelper") + run: julia -e 'using Pkg; Pkg.add("CompatHelper")' + - name: CompatHelper.main() + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} + run: julia -e 'using CompatHelper; CompatHelper.main()' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..818cf23 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +name: CI +on: + push: + paths-ignore: + - 'README.md' + branches: + - main + pull_request: + paths-ignore: + - 'README.md' + branches: + - main +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - '1' + - 'min' + - 'nightly' + os: + - ubuntu-latest + - macOS-latest + - windows-latest + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - name: Cache + uses: julia-actions/cache@v2 + with: + cache-compiled: "true" + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v4 + with: + files: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/Project.toml b/Project.toml index 5a824dd..3a6047c 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "EmbraceUncertainty" uuid = "81be8970-b14c-4107-8889-06289fef228c" -authors = ["Phillip Alday , Reinhold Kliegl , Douglas Bates "] +authors = ["Phillip Alday ", "Reinhold Kliegl ", "Douglas Bates "] version = "0.1.0" [deps] @@ -44,7 +44,9 @@ ZipFile = "a5390f91-8eb1-5f08-bee0-b1d1ffed6cea" [compat] AlgebraOfGraphics = "0.6, 0.7, 0.8" +Aqua = "0.8.7" Arrow = "2" +BenchmarkTools = "1" CSV = "0.10" CairoMakie = "0.11, 0.12" CategoricalArrays = "0.10" @@ -52,17 +54,22 @@ Chain = "0.5,0.6" DataAPI = "1" DataFrameMacros = "0.3,0.4" DataFrames = "1.3" +Dates = "1" Distributions = "0.25" Downloads = "1" Effects = "1" FreqTables = "0.4" GLM = "1" LinearAlgebra = "1" +Markdown = "1" MixedModels = "4,5" +MixedModelsDatasets = "0.1.1" MixedModelsMakie = "0.4" NLopt = "1" +Pkg = "1" PooledArrays = "1" RCall = "0.13,0.14" +RectangularFullPacked = "0.2" Random = "1" SHA = "0.7" Scratch = "1" @@ -71,6 +78,17 @@ StatsAPI = "1" StatsBase = "0.33, 0.34" StatsModels = "0.7" Tables = "1" +TidierPlots = "0.8" +Test = "1.11.0" +TestSetExtensions = "3.0.0" TypedTables = "1" ZipFile = "0.10" julia = "1.8" + +[extras] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" +TestSetExtensions = "98d24dd4-01ad-11ea-1b02-c9a08f80db04" + +[targets] +test = ["Aqua", "Test", "TestSetExtensions"] diff --git a/test/runtests.jl b/test/runtests.jl new file mode 100644 index 0000000..fed2815 --- /dev/null +++ b/test/runtests.jl @@ -0,0 +1,12 @@ +using Aqua +using EmbraceUncertainty +using Test +using TestSetExtensions + +@testset ExtendedTestSet "EmbraceUncertainty" begin + @testset "Aqua" begin + # we can't test stale deps because the dependencies aren't + # just for the package, but also for entire book + Aqua.test_all(EmbraceUncertainty; ambiguities=false, stale_deps=false) + end +end