Skip to content

Commit

Permalink
tests and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Sep 26, 2024
1 parent f6bc506 commit 3bc8b9b
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -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()'
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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 }}
20 changes: 19 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "EmbraceUncertainty"
uuid = "81be8970-b14c-4107-8889-06289fef228c"
authors = ["Phillip Alday <[email protected]>, Reinhold Kliegl <[email protected]>, Douglas Bates <[email protected]>"]
authors = ["Phillip Alday <[email protected]>", "Reinhold Kliegl <[email protected]>", "Douglas Bates <[email protected]>"]
version = "0.1.0"

[deps]
Expand Down Expand Up @@ -44,25 +44,32 @@ 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"
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"
Expand All @@ -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"]
12 changes: 12 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3bc8b9b

Please sign in to comment.