From 8605139bc38d7ed44e4cd18856c991c83675ba71 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Thu, 27 Jul 2023 11:40:57 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Drop=20Python=203.7=20?= =?UTF-8?q?support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 7 +++++-- pyproject.toml | 3 +-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d42aa8..9257803 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11"] include: - os: windows-latest python-version: 3.8 @@ -39,6 +39,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + cache: pip - name: Install dependencies run: | python -m pip install --upgrade pip @@ -60,7 +61,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["3.7", "3.10"] + python-version: ["3.8", "3.10"] runs-on: ${{ matrix.os }} @@ -70,6 +71,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + cache: pip - name: Install dependencies run: | python -m pip install --upgrade pip @@ -90,6 +92,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: "3.9" + cache: pip - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/pyproject.toml b/pyproject.toml index f47d1ef..ca32898 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,6 @@ classifiers = [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", @@ -27,7 +26,7 @@ classifiers = [ "Topic :: Text Processing :: Markup :: reStructuredText", ] keywords = ["sphinx", "extension", "material design", "web components"] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = ["sphinx>=4,<7"] [project.urls] From 63d94861d7c2d3763eb424d012ef499727db89ad Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Thu, 27 Jul 2023 11:49:10 +0200 Subject: [PATCH 2/2] Update ci.yml --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9257803..8cd7cc3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,6 +100,25 @@ jobs: - name: Build documentation run: sphinx-build -nW --keep-going -b ${{ matrix.format }} docs/ docs/_build/${{ matrix.format }} + # https://github.com/marketplace/actions/alls-green#why + check: # This job does nothing and is only used for the branch protection + + if: always() + + needs: + - pre-commit + - tests + - tests-sphinx4 + - docs-build-format + + runs-on: ubuntu-latest + + steps: + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }} + publish: name: Publish to PyPi