From 7f91c07e51fccbbc3b503eb9f9ba3dba69fe90f0 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Thu, 3 Oct 2024 12:43:15 +0200 Subject: [PATCH] Test pre-releases instead of nightly and update actions (#681) * Test pre-releases instead of nightly and update actions * Update Julia compat entry --- .github/workflows/CI.yml | 13 +++++++++---- .github/workflows/Docs.yml | 2 +- .github/workflows/Format.yml | 2 +- .github/workflows/IntegrationTest.yml | 2 +- .../workflows/{JuliaNightly.yml => JuliaPre.yml} | 13 +++++++++---- Project.toml | 2 +- README.md | 2 +- 7 files changed, 23 insertions(+), 13 deletions(-) rename .github/workflows/{JuliaNightly.yml => JuliaPre.yml} (54%) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8e3f862ca..f7d43470e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -10,13 +10,18 @@ on: merge_group: types: [checks_requested] +# needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + jobs: test: runs-on: ${{ matrix.os }} strategy: matrix: version: - - '1.6' # minimum supported version + - 'min' # minimum supported version - '1' # current stable version os: - ubuntu-latest @@ -48,9 +53,9 @@ jobs: - uses: julia-actions/cache@v2 - - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-buildpkg@v1 - - uses: julia-actions/julia-runtest@latest + - uses: julia-actions/julia-runtest@v1 env: GROUP: All JULIA_NUM_THREADS: ${{ matrix.num_threads }} @@ -63,7 +68,7 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true - - uses: coverallsapp/github-action@master + - uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.GITHUB_TOKEN }} path-to-lcov: lcov.info diff --git a/.github/workflows/Docs.yml b/.github/workflows/Docs.yml index 24a89b547..0530abecb 100644 --- a/.github/workflows/Docs.yml +++ b/.github/workflows/Docs.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@latest + - uses: julia-actions/setup-julia@v2 with: version: '1' - name: Install dependencies diff --git a/.github/workflows/Format.yml b/.github/workflows/Format.yml index abeefa989..965f2ea66 100644 --- a/.github/workflows/Format.yml +++ b/.github/workflows/Format.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@latest + - uses: julia-actions/setup-julia@v2 with: version: 1 - name: Format code diff --git a/.github/workflows/IntegrationTest.yml b/.github/workflows/IntegrationTest.yml index 14ecd8b7c..c0389bb12 100644 --- a/.github/workflows/IntegrationTest.yml +++ b/.github/workflows/IntegrationTest.yml @@ -26,7 +26,7 @@ jobs: with: version: 1 arch: x64 - - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-buildpkg@v1 - name: Clone Downstream uses: actions/checkout@v4 with: diff --git a/.github/workflows/JuliaNightly.yml b/.github/workflows/JuliaPre.yml similarity index 54% rename from .github/workflows/JuliaNightly.yml rename to .github/workflows/JuliaPre.yml index f4ea42805..98b0b0ffa 100644 --- a/.github/workflows/JuliaNightly.yml +++ b/.github/workflows/JuliaPre.yml @@ -1,4 +1,4 @@ -name: JuliaNightly +name: JuliaPre on: push: @@ -8,6 +8,11 @@ on: branches: - master +# needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + jobs: test: runs-on: ubuntu-latest @@ -15,10 +20,10 @@ jobs: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v2 with: - version: 'nightly' + version: 'pre' # pre-release arch: x64 - uses: julia-actions/cache@v2 - - uses: julia-actions/julia-buildpkg@latest - - uses: julia-actions/julia-runtest@latest + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 env: GROUP: DynamicPPL diff --git a/Project.toml b/Project.toml index 597d7d435..4ed8a0ef1 100644 --- a/Project.toml +++ b/Project.toml @@ -65,7 +65,7 @@ Requires = "1" ReverseDiff = "1" Test = "1.6" ZygoteRules = "0.2" -julia = "1.6" +julia = "~1.6.6, 1.7.3" [extras] ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" diff --git a/README.md b/README.md index ee243f588..afc9e360f 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://turinglang.github.io/DynamicPPL.jl/stable) [![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://turinglang.github.io/DynamicPPL.jl/dev) [![CI](https://github.com/TuringLang/DynamicPPL.jl/workflows/CI/badge.svg?branch=master)](https://github.com/TuringLang/DynamicPPL.jl/actions?query=workflow%3ACI+branch%3Amaster) -[![JuliaNightly](https://github.com/TuringLang/DynamicPPL.jl/workflows/JuliaNightly/badge.svg?branch=master)](https://github.com/TuringLang/DynamicPPL.jl/actions?query=workflow%3AJuliaNightly+branch%3Amaster) +[![JuliaPre](https://github.com/TuringLang/DynamicPPL.jl/workflows/JuliaPre/badge.svg?branch=master)](https://github.com/TuringLang/DynamicPPL.jl/actions?query=workflow%3AJuliaPre+branch%3Amaster) [![IntegrationTest](https://github.com/TuringLang/DynamicPPL.jl/workflows/IntegrationTest/badge.svg?branch=master)](https://github.com/TuringLang/DynamicPPL.jl/actions?query=workflow%3AIntegrationTest+branch%3Amaster) [![Coverage Status](https://coveralls.io/repos/github/TuringLang/DynamicPPL.jl/badge.svg?branch=master)](https://coveralls.io/github/TuringLang/DynamicPPL.jl?branch=master) [![Codecov](https://codecov.io/gh/TuringLang/DynamicPPL.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/TuringLang/DynamicPPL.jl)