From 7252b43d2847bc02c3ddecf1a4f88a5d4ac01671 Mon Sep 17 00:00:00 2001 From: abhro <5664668+abhro@users.noreply.github.com> Date: Wed, 21 May 2025 10:32:46 -0400 Subject: [PATCH 1/2] Create dependabot.yml and remove CompatHelper.yml From https://discourse.julialang.org/t/psa-use-dependabot-to-update-github-actions-automatically/96001 and Breeze.jl's use --- .github/dependabot.yml | 16 ++++++++++++++++ .github/workflows/CompatHelper.yml | 16 ---------------- 2 files changed, 16 insertions(+), 16 deletions(-) create mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/CompatHelper.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..423f0ec --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,16 @@ +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" # Location of package manifests + schedule: + interval: "quarterly" + - package-ecosystem: "julia" + directories: ["/", "/docs"] + schedule: + interval: "monthly" + ignore: + - dependency-name: "RMLImaging" # Ignore package itself + groups: + per-dependency: + group-by: dependency-name diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml deleted file mode 100644 index cba9134..0000000 --- a/.github/workflows/CompatHelper.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: CompatHelper -on: - schedule: - - cron: 0 0 * * * - workflow_dispatch: -jobs: - CompatHelper: - runs-on: ubuntu-latest - steps: - - name: Pkg.add("CompatHelper") - run: julia -e 'using Pkg; Pkg.add("CompatHelper")' - - name: CompatHelper.main() - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} - run: julia -e 'using CompatHelper; CompatHelper.main()' From 98eed81e52d5a21f74ced845326c200ffa51ebb4 Mon Sep 17 00:00:00 2001 From: abhro <5664668+abhro@users.noreply.github.com> Date: Wed, 21 May 2025 10:34:53 -0400 Subject: [PATCH 2/2] Update action versions in CI.yml --- .github/workflows/CI.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 45429b4..cc322ae 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,8 +1,7 @@ name: CI on: push: - branches: - - main + branches: [main] tags: ['*'] pull_request: concurrency: @@ -25,18 +24,19 @@ jobs: arch: - x64 steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v6 + - uses: julia-actions/setup-julia@v3 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: julia-actions/cache@v1 + - uses: julia-actions/cache@v3 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v2 + - uses: codecov/codecov-action@v6 with: files: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} docs: name: Documentation runs-on: ubuntu-latest @@ -44,8 +44,8 @@ jobs: contents: write statuses: write steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v6 + - uses: julia-actions/setup-julia@v3 with: version: '1' - uses: julia-actions/julia-buildpkg@v1 @@ -53,9 +53,10 @@ jobs: env: PYTHON: "" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - run: | - julia --project=docs -e ' - using Documenter: DocMeta, doctest - using RMLImaging - DocMeta.setdocmeta!(RMLImaging, :DocTestSetup, :(using RMLImaging); recursive=true) - doctest(RMLImaging)' + - name: Run doctests + shell: julia --color=yes --project=docs {0} + run: | + using Documenter: DocMeta, doctest + using RMLImaging + DocMeta.setdocmeta!(RMLImaging, :DocTestSetup, :(using RMLImaging); recursive=true) + doctest(RMLImaging)