From 9c8f172df07185343f1c668ba1634afc1e6db676 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Wed, 2 Oct 2024 18:47:47 +0100 Subject: [PATCH] Bump versions of GitHub Actions (#676) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Bump versions of GitHub Actions * Use julia-actions/cache * Add Dependabot config * Put dependabot in its place 😡 --- .github/dependabot.yml | 6 ++++++ .github/workflows/CI.yml | 22 ++++++++++------------ .github/workflows/Docs.yml | 2 +- .github/workflows/DocsPreviewCleanup.yml | 2 +- .github/workflows/Format.yml | 2 +- .github/workflows/IntegrationTest.yml | 6 +++--- .github/workflows/JuliaNightly.yml | 15 +++------------ 7 files changed, 25 insertions(+), 30 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..8ac6b8c49 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a54b850a1..7eec8659e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -39,30 +39,28 @@ jobs: arch: x64 num_threads: 2 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: actions/cache@v1 - env: - cache-name: cache-artifacts - 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 }}- + + - uses: julia-actions/cache@v2 + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-runtest@latest env: GROUP: All JULIA_NUM_THREADS: ${{ matrix.num_threads }} + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v1 with: file: lcov.info + - uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/Docs.yml b/.github/workflows/Docs.yml index e95603cb7..24a89b547 100644 --- a/.github/workflows/Docs.yml +++ b/.github/workflows/Docs.yml @@ -21,7 +21,7 @@ jobs: docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@latest with: version: '1' diff --git a/.github/workflows/DocsPreviewCleanup.yml b/.github/workflows/DocsPreviewCleanup.yml index 4f57bc46b..c5c8c8ce0 100644 --- a/.github/workflows/DocsPreviewCleanup.yml +++ b/.github/workflows/DocsPreviewCleanup.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout gh-pages branch - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: gh-pages - name: Delete preview and history + push changes diff --git a/.github/workflows/Format.yml b/.github/workflows/Format.yml index 5847fee57..abeefa989 100644 --- a/.github/workflows/Format.yml +++ b/.github/workflows/Format.yml @@ -20,7 +20,7 @@ jobs: format: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@latest with: version: 1 diff --git a/.github/workflows/IntegrationTest.yml b/.github/workflows/IntegrationTest.yml index 92132e16b..14ecd8b7c 100644 --- a/.github/workflows/IntegrationTest.yml +++ b/.github/workflows/IntegrationTest.yml @@ -21,14 +21,14 @@ jobs: - {user: TuringLang, repo: Turing.jl} steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 with: version: 1 arch: x64 - uses: julia-actions/julia-buildpkg@latest - name: Clone Downstream - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: repository: ${{ matrix.package.user }}/${{ matrix.package.repo }} path: downstream diff --git a/.github/workflows/JuliaNightly.yml b/.github/workflows/JuliaNightly.yml index 17894eb2f..f4ea42805 100644 --- a/.github/workflows/JuliaNightly.yml +++ b/.github/workflows/JuliaNightly.yml @@ -12,21 +12,12 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 with: version: 'nightly' arch: x64 - - uses: actions/cache@v1 - env: - cache-name: cache-artifacts - 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 }}- + - uses: julia-actions/cache@v2 - uses: julia-actions/julia-buildpkg@latest - uses: julia-actions/julia-runtest@latest env: