From 8d4e684ce201b3dd1292031015ec59ebda7ca684 Mon Sep 17 00:00:00 2001 From: richardreeve Date: Mon, 15 Apr 2024 22:30:51 +0100 Subject: [PATCH 1/3] Updater workflows --- .github/workflows/CI.yml | 13 +++++++++---- .github/workflows/CompatHelper.yml | 7 ++++--- .github/workflows/Doc_preview_cleanup.yml | 4 ++-- .github/workflows/Documentation.yml | 4 ++-- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index dada66a..b97dd08 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -8,6 +8,10 @@ on: - '*' pull_request: +permissions: + actions: write + contents: read + jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} @@ -26,17 +30,18 @@ jobs: experimental: [false] steps: - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@v1 + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} + - uses: julia-actions/cache@v1 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: - file: ./lcov.info flags: unittests name: codecov-umbrella fail_ci_if_error: false - token: ${{ secrets.CODECOV }} \ No newline at end of file + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index 5843258..7f02892 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -3,7 +3,7 @@ name: CompatHelper on: push: branches: - - master + - main schedule: - cron: '00 00 * * *' @@ -19,7 +19,7 @@ jobs: os: - ubuntu-latest steps: - - uses: julia-actions/setup-julia@v1 + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.julia-version }} arch: ${{ matrix.arch }} @@ -37,4 +37,5 @@ jobs: CompatHelper.main() shell: julia --color=yes {0} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} diff --git a/.github/workflows/Doc_preview_cleanup.yml b/.github/workflows/Doc_preview_cleanup.yml index f3d42b6..43b39af 100644 --- a/.github/workflows/Doc_preview_cleanup.yml +++ b/.github/workflows/Doc_preview_cleanup.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 @@ -25,4 +25,4 @@ jobs: - name: Push changes run: | - git push --force origin gh-pages-new:gh-pages \ No newline at end of file + git push --force origin gh-pages-new:gh-pages diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index 814156b..727deb5 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -3,7 +3,7 @@ name: Documentation on: push: branches: - - master + - main tags: '*' pull_request: @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@v1 + - uses: julia-actions/setup-julia@v2 with: version: '1' - uses: julia-actions/julia-buildpkg@v1 From 724d3c381db0ed8e5b78be9ce87a70d1e027668a Mon Sep 17 00:00:00 2001 From: richardreeve Date: Mon, 15 Apr 2024 22:31:06 +0100 Subject: [PATCH 2/3] Update compat and version --- Project.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 0b90ff1..3636cee 100644 --- a/Project.toml +++ b/Project.toml @@ -4,7 +4,7 @@ keywords = ["macroecology", "ecology", "biology", "geography"] license = "MIT" desc = "Julia framework for spatial ecology" authors = ["mkborregaard Date: Tue, 16 Apr 2024 00:26:10 +0100 Subject: [PATCH 3/3] Fix README badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index af56a87..3a346f6 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ![version](https://img.shields.io/github/v/tag/EcoJulia/SpatialEcology.jl?sort=semver&style=flat-square) [![CI](https://github.com/EcoJulia/SpatialEcology.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/EcoJulia/SpatialEcology.jl/actions/workflows/CI.yml) -![Doc](https://img.shields.io/github/workflow/status/EcoJulia/SpatialEcology.jl/Documentation?label=Doc&style=flat-square) +![Doc](https://img.shields.io/github/actions/workflow/status/EcoJulia/SpatialEcology.jl/Documentation.yml?branch=main) [![codecov](https://codecov.io/gh/EcoJulia/SpatialEcology.jl/graph/badge.svg?token=DeSFZuHa99)](https://codecov.io/gh/EcoJulia/SpatialEcology.jl) ## Primary author: Michael Krabbe Borregaard (@mkborregaard)