Skip to content

Commit

Permalink
Require Julia 1.6, modernize CI, allow CategoricalArrays 0.10
Browse files Browse the repository at this point in the history
Currently we require Julia 1.2 but 1.6 is current LTS so we might as
well bump to that.
  • Loading branch information
ararslan committed Jul 9, 2022
1 parent fce52ed commit 84e2964
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 23 deletions.
27 changes: 6 additions & 21 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
tags: '*'
branches: [master]
tags: ["*"]
pull_request:
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
Expand All @@ -15,7 +12,7 @@ jobs:
fail-fast: false
matrix:
version:
- '1.2'
- '1.6'
- '1'
- 'nightly'
os:
Expand Down Expand Up @@ -49,20 +46,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- run: |
julia --project=docs -e '
using Documenter: doctest
using Survival
doctest(Survival)'
- run: julia --project=docs docs/make.jl
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-docdeploy@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
StatsModels = "3eaba693-59b7-5ba5-a881-562e759f1c8d"

[compat]
CategoricalArrays = "0.9"
CategoricalArrays = "0.9, 0.10"
Compat = "3.43, 4"
DataFrames = "1"
Distributions = "0.20, 0.21, 0.22, 0.23, 0.24, 0.25"
Optim = "1"
StatsBase = "0.30, 0.31, 0.32, 0.33"
StatsModels = "0.6"
julia = "1.2"
julia = "1.6"

[extras]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Expand Down

0 comments on commit 84e2964

Please sign in to comment.