From 51064eec6bca5ccae5b081e714bcab674bf904f0 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Wed, 2 Oct 2024 00:15:39 +0100 Subject: [PATCH 1/4] Bump versions of GitHub Actions --- .github/workflows/CI.yml | 6 +++--- .github/workflows/Docs.yml | 2 +- .github/workflows/DocsPreviewCleanup.yml | 2 +- .github/workflows/Format.yml | 2 +- .github/workflows/IntegrationTest.yml | 6 +++--- .github/workflows/JuliaNightly.yml | 6 +++--- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a54b850a1..358a7e610 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -39,12 +39,12 @@ 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 + - uses: actions/cache@v4 env: cache-name: cache-artifacts with: 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..0a67fce12 100644 --- a/.github/workflows/JuliaNightly.yml +++ b/.github/workflows/JuliaNightly.yml @@ -12,12 +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 + - uses: actions/cache@v4 env: cache-name: cache-artifacts with: From dedc3a8edfd5fcfc5fa2bc26738a4222fe305148 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Wed, 2 Oct 2024 15:27:31 +0100 Subject: [PATCH 2/4] Use julia-actions/cache --- .github/workflows/CI.yml | 18 ++++++++---------- .github/workflows/JuliaNightly.yml | 11 +---------- 2 files changed, 9 insertions(+), 20 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 358a7e610..7eec8659e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -40,29 +40,27 @@ jobs: num_threads: 2 steps: - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: actions/cache@v4 - 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/JuliaNightly.yml b/.github/workflows/JuliaNightly.yml index 0a67fce12..f4ea42805 100644 --- a/.github/workflows/JuliaNightly.yml +++ b/.github/workflows/JuliaNightly.yml @@ -17,16 +17,7 @@ jobs: with: version: 'nightly' arch: x64 - - uses: actions/cache@v4 - 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: From bfb41be40e4ccb42841381b4ec88a34db17305ad Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Wed, 2 Oct 2024 16:32:11 +0100 Subject: [PATCH 3/4] Add Dependabot config --- .github/workflows/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/workflows/dependabot.yml diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 000000000..8ac6b8c49 --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" From 2b37ff068d13b5810702d497626cecec11cac471 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Wed, 2 Oct 2024 18:18:42 +0100 Subject: [PATCH 4/4] =?UTF-8?q?Put=20dependabot=20in=20its=20place=20?= =?UTF-8?q?=F0=9F=98=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/{workflows => }/dependabot.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{workflows => }/dependabot.yml (100%) diff --git a/.github/workflows/dependabot.yml b/.github/dependabot.yml similarity index 100% rename from .github/workflows/dependabot.yml rename to .github/dependabot.yml