diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d42aa8..8cd7cc3 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 @@ -97,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 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]