From bd4b2826f4d595c29e68d86f92df313ab0cb38d8 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 4 Mar 2024 09:25:34 +0100 Subject: [PATCH 1/3] Address repo-review issue GH200: Maintained by Dependabot All projects should have a `.github/dependabot.yml` file to support at least GitHub Actions regular updates. https://learn.scientific-python.org/development/guides/repo-review/?repo=populse%2Fcapsul&branch=3.0 --- .github/dependabot.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..23c4cb3b5 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +--- +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" From 2ee9137cfacdfa719381041036bf6d9b75c04b47 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 4 Mar 2024 09:31:24 +0100 Subject: [PATCH 2/3] Address repo-review issue GH102: Auto-cancel on repeated PRs At least one workflow should auto-cancel. https://learn.scientific-python.org/development/guides/repo-review/?repo=populse%2Fcapsul&branch=3.0 --- .github/workflows/codespell.yml | 4 ++++ .github/workflows/test-v3.yml | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index de5ac87d7..3a6b7aa0e 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -7,6 +7,10 @@ on: pull_request: branches: [master] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: codespell: name: Check for spelling errors diff --git a/.github/workflows/test-v3.yml b/.github/workflows/test-v3.yml index d9ecb9a92..79a6b0921 100644 --- a/.github/workflows/test-v3.yml +++ b/.github/workflows/test-v3.yml @@ -1,6 +1,6 @@ +--- # This workflow will install Python dependencies, run tests and lint with a single version of Python # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - name: test_v3 on: @@ -20,6 +20,10 @@ on: required: false default: false +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read From 7ad11384ba43339b005f977672c2a20c32f94ec5 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 4 Mar 2024 09:33:07 +0100 Subject: [PATCH 3/3] Address repo-review issue: PC901: Custom pre-commit CI message Should have something like this in .pre-commit-config.yaml: ci: autoupdate_commit_msg: 'chore: update pre-commit hooks' https://learn.scientific-python.org/development/guides/repo-review/?repo=populse%2Fcapsul&branch=3.0 --- .pre-commit-config.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8438bf418..6392971f5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,6 @@ +ci: + autoupdate_commit_msg: 'chore: update pre-commit hooks' + exclude: '^(doc/source|capsul)/sphinxext/' repos: