From 82a9e12a04fdeaaf99792902f7e4985bdee1797b Mon Sep 17 00:00:00 2001 From: Phillip Alday Date: Tue, 5 Mar 2024 13:19:05 -0600 Subject: [PATCH] Remove cruft, compat bumps (#6) * remove deadfile * ci action bump * patch bump * add nightly to CI --- .github/workflows/ci.yml | 8 +++++--- .github/workflows/documenter.yml | 2 +- Project.toml | 2 +- src/datasets.jl | 28 ---------------------------- 4 files changed, 7 insertions(+), 33 deletions(-) delete mode 100644 src/datasets.jl diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 835ec80..a5df59f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,12 +21,12 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - version: [1.6, 1] + version: [1.6, 1, nightly] arch: [x64] os: [ubuntu-latest] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Julia Setup uses: julia-actions/setup-julia@v1 with: @@ -45,7 +45,9 @@ jobs: uses: julia-actions/julia-processcoverage@v1 if: ${{ startsWith(matrix.os, 'ubuntu') && (matrix.version == '1') }} - name: Coverage Upload - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v4 if: ${{ startsWith(matrix.os, 'ubuntu') && (matrix.version == '1') }} with: file: lcov.info + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/documenter.yml b/.github/workflows/documenter.yml index 4ebdbde..6049df5 100644 --- a/.github/workflows/documenter.yml +++ b/.github/workflows/documenter.yml @@ -16,7 +16,7 @@ jobs: name: Documentation runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: julia-actions/cache@v1 with: cache-compiled: "true" diff --git a/Project.toml b/Project.toml index 87962c5..214737f 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "MixedModelsDatasets" uuid = "7e9fb7ac-9f67-43bf-b2c8-96ba0796cbb6" authors = ["Phillip Alday ", "Douglas Bates "] -version = "0.1.0" +version = "0.1.1" [deps] Arrow = "69666777-d1a9-59fb-9406-91d4454c9d45" diff --git a/src/datasets.jl b/src/datasets.jl deleted file mode 100644 index 146dee8..0000000 --- a/src/datasets.jl +++ /dev/null @@ -1,28 +0,0 @@ -_testdata() = artifact"TestData" - -cacheddatasets = Dict{String,Arrow.Table}() -""" - dataset(nm) - -Return, as an `Arrow.Table`, the test data set named `nm`, which can be a `String` or `Symbol` -""" -function dataset(nm::AbstractString) - get!(cacheddatasets, nm) do - path = joinpath(_testdata(), nm * ".arrow") - if !isfile(path) - throw(ArgumentError("Dataset \"$nm\" is not available.\nUse MixedModels.datasets() for available names.")) - end - return Arrow.Table(path) - end -end -dataset(nm::Symbol) = dataset(string(nm)) - -""" - datasets() - -Return a vector of names of the available test data sets -""" -function datasets() - return first.(Base.Filesystem.splitext.(filter(endswith(".arrow"), - readdir(_testdata())))) -end