Skip to content

Commit

Permalink
Update GH actions and add dependabot (#377)
Browse files Browse the repository at this point in the history
* Update GH actions and add dependabot

* Update Julia compat (tests pass with 1.6.7?)
  • Loading branch information
devmotion authored Oct 6, 2024
1 parent 85bf5fe commit 47b212a
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 51 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/" # Location of package manifests
schedule:
interval: "monthly"
37 changes: 18 additions & 19 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,41 @@ on:
- master
pull_request:

concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
test:
# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' }}
continue-on-error: ${{ matrix.version == 'pre' }}
strategy:
matrix:
version:
- '1.6'
- 'min'
- '1'
- 'nightly'
- 'pre'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x86
- x64
exclude:
- os: ubuntu-latest
arch: x86
- os: macOS-latest
arch: x86
- os: windows-latest
arch: x86
# GitHub Action seems to have issue of running julia-nightly with windows-latest
# TODO Revisit in the future
- version: 'nightly'
os: windows-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- name: Run tests
uses: julia-actions/julia-runtest@latest
uses: julia-actions/julia-runtest@v1
env:
AHMC_TEST_GROUP: AdvancedHMC
27 changes: 15 additions & 12 deletions .github/workflows/ExperimentalTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@ on:
- master
pull_request:

concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
test:
# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -18,23 +28,16 @@ jobs:
- macOS-latest
- windows-latest
arch:
- x86
- x64
exclude:
- os: ubuntu-latest
arch: x86
- os: macOS-latest
arch: x86
- os: windows-latest
arch: x86
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- name: Run integration tests
uses: julia-actions/julia-runtest@latest
uses: julia-actions/julia-runtest@v1
env:
AHMC_TEST_GROUP: Experimental
5 changes: 2 additions & 3 deletions .github/workflows/Format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
push:
branches:
- master
- main

concurrency:
# Skip intermediate builds: always.
Expand All @@ -17,8 +16,8 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: 1
- name: Format code
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/IntegrationTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@ on:
- master
pull_request:

concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
test:
# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -18,23 +28,16 @@ jobs:
- macOS-latest
- windows-latest
arch:
- x86
- x64
exclude:
- os: ubuntu-latest
arch: x86
- os: macOS-latest
arch: x86
- os: windows-latest
arch: x86
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- name: Run integration tests
uses: julia-actions/julia-runtest@latest
uses: julia-actions/julia-runtest@v1
env:
AHMC_TEST_GROUP: Downstream
9 changes: 5 additions & 4 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ on:

jobs:
build:
permissions:
statuses: write # Used to report documentation build statuses
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1.7'
version: '1'
- name: Install dependencies
run: julia --project=docs/ -e '
using Pkg;
Expand All @@ -24,4 +26,3 @@ jobs:
env:
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
run: julia --project=docs/ docs/make.jl

2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ StatsBase = "0.31, 0.32, 0.33, 0.34"
StatsFuns = "0.8, 0.9, 1"
LinearAlgebra = "1.6"
Random = "1.6"
julia = "1.6"
julia = "1.6.7"

[extras]
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
Expand Down

0 comments on commit 47b212a

Please sign in to comment.