Skip to content

Commit

Permalink
Update CI setup (#111)
Browse files Browse the repository at this point in the history
* Update CI setup

* Fix incorrect minimum bounds
  • Loading branch information
penelopeysm authored Jan 23, 2025
1 parent d0d180f commit 5a36d31
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 40 deletions.
87 changes: 49 additions & 38 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,58 +6,69 @@ on:
- master
pull_request:

# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' }}
name: Julia ${{ matrix.runner.version }} - ${{ matrix.runner.os }} - ${{ matrix.runner.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.runner.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.7'
- '1'
- 'nightly'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
- x86
exclude:
- os: macOS-latest
runner:
# Default
- version: '1'
os: ubuntu-latest
arch: x64
num_threads: 1
# x86
- version: '1'
os: ubuntu-latest
arch: x86
include:
num_threads: 1
# Multithreaded
- version: '1'
os: ubuntu-latest
arch: x64
num_threads: 2
# Windows
- version: '1'
os: windows-latest
arch: x64
num_threads: 1
# macOS
- version: '1'
os: macos-latest
arch: aarch64
num_threads: 1
# Minimum supported Julia version
- version: 'min'
os: ubuntu-latest
arch: x64
coverage: true
num_threads: 1
# Pre-release Julia version
- version: 'pre'
os: ubuntu-latest
arch: x64
num_threads: 1
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
version: ${{ matrix.runner.version }}
arch: ${{ matrix.runner.arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
if: matrix.coverage
- uses: codecov/codecov-action@v1
if: matrix.coverage
- uses: codecov/codecov-action@v5
with:
file: lcov.info
- uses: coverallsapp/github-action@master
if: matrix.coverage
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
- uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: lcov.info
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ AdvancedPSLibtaskExt = "Libtask"
AbstractMCMC = "2, 3, 4, 5"
Distributions = "0.23, 0.24, 0.25"
Libtask = "0.8"
Random = "1.6"
Random = "<0.0.1, 1"
Random123 = "1.3"
Requires = "1.0"
StatsFuns = "0.9, 1"
SSMProblems = "0.1"
julia = "1.6"
julia = "1.7"

[extras]
Libtask = "6f1fad26-d15e-5dc8-ae53-837a1d7b8c9f"
Expand Down

2 comments on commit 5a36d31

@penelopeysm
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

  • Sampling on 64- and 32-bit systems reproducibly gave different results, due to use of hash(::UInt64, ::UInt). This has been replaced and so now 64- and 32-bit systems should yield the same result (as long as the PRNG is seeded appropriately).

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/123549

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.1 -m "<description of version>" 5a36d3169a2c4cb13d661de791975d4be7a0ae4a
git push origin v0.6.1

Please sign in to comment.