From 7de602ff2d3dc174143123f96d28bb1dbb7e2095 Mon Sep 17 00:00:00 2001 From: Joachim Meyer Date: Thu, 19 Sep 2024 10:40:05 -0600 Subject: [PATCH 1/5] README - Add DOI for 2024 Hackweek And links to each event Jupyter Book --- README.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 89256ed..930fd66 100644 --- a/README.rst +++ b/README.rst @@ -115,5 +115,8 @@ DOI --- .. |HW22| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.7618102.svg :target: https://doi.org/10.5281/zenodo.7618102 +.. |HW24| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.13312706.svg + :target: https://doi.org/10.5281/zenodo.13312706 -* SnowEx Hackweek 2022 - |HW22| +* `SnowEx Hackweek 2022 `_ - |HW22| +* `SnowEx Hackweek 2024 `_ - |HW24| From 70d961627c085f080ba1ca39b550fec9a7b2d498 Mon Sep 17 00:00:00 2001 From: Joachim Meyer Date: Thu, 19 Sep 2024 10:47:21 -0600 Subject: [PATCH 2/5] GH actions - Exclude CI and main for 'docs' changes Do not run the CI or main actions once there are only changes to documentation. --- .github/workflows/ci.yaml | 4 ++++ .github/workflows/main.yml | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f6ab52e..ccf667b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,8 +2,12 @@ name: Code Quality on: push: branches: [ master ] + paths-ignore: + - 'docs/**' pull_request: branches: [ master ] + paths-ignore: + - 'docs/**' jobs: run: runs-on: ubuntu-latest diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 31dc277..a9586bb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,9 +6,12 @@ on: # Triggers the workflow on push or pull request events but only for the master branch push: branches: [ master ] + paths-ignore: + - 'docs/**' pull_request: branches: [ master ] - workflow_dispatch: + paths-ignore: + - 'docs/**' jobs: build: From 673af606048020b1c2a7d38f6b2a4161c7a6c8d0 Mon Sep 17 00:00:00 2001 From: Joachim Meyer Date: Thu, 19 Sep 2024 10:57:10 -0600 Subject: [PATCH 3/5] GH actions - Only build the docs when there are changes Following the ReadTheDocs guide to only build once there are actual changes to the 'docs/' folder --- .readthedocs.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 82429fd..8f45173 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -11,6 +11,13 @@ build: tools: python: "3.11" jobs: + post_checkout: + # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition + - | + if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- docs/ .readthedocs.yaml; + then + exit 183; + fi pre_build: # Generate the Sphinx configuration for this Jupyter Book so it builds. - "jupyter-book config sphinx docs" From f0823834a7700d3ae64b736e6ac1a602f693a37c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 17:30:41 +0000 Subject: [PATCH 4/5] Bump pypa/gh-action-pypi-publish in the actions group across 1 directory Bumps the actions group with 1 update in the / directory: [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish). Updates `pypa/gh-action-pypi-publish` from 1.10.1 to 1.10.3 - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) - [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/v1.10.1...v1.10.3) --- updated-dependencies: - dependency-name: pypa/gh-action-pypi-publish dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions ... Signed-off-by: dependabot[bot] --- .github/workflows/cd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index a86735b..852f388 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -49,7 +49,7 @@ jobs: ls -ltrh ls -ltrh dist - name: Publish to Test PyPI - uses: pypa/gh-action-pypi-publish@v1.10.1 + uses: pypa/gh-action-pypi-publish@v1.10.3 with: repository-url: https://test.pypi.org/legacy/ verbose: true @@ -98,5 +98,5 @@ jobs: name: artifact path: dist - - uses: pypa/gh-action-pypi-publish@v1.10.1 + - uses: pypa/gh-action-pypi-publish@v1.10.3 if: startsWith(github.ref, 'refs/tags') From 321e0eff9f797343a80a7028683bc00351832508 Mon Sep 17 00:00:00 2001 From: Joachim Meyer Date: Wed, 23 Oct 2024 14:59:24 -0600 Subject: [PATCH 5/5] GH actions - Set dependabot to monthly (#167) --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 6c4b369..8b13673 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,7 +4,7 @@ updates: - package-ecosystem: "github-actions" directory: "/" schedule: - interval: "weekly" + interval: "monthly" groups: actions: patterns: