diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index c00bc5ed..b609154e 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -8,7 +8,7 @@ inputs: runs: using: "composite" steps: - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python ${{ inputs.python-version }} uses: actions/setup-python@v5 with: python-version: ${{ inputs.python-version }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ad3f6f3..e6927bb0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,11 +7,14 @@ on: jobs: test-matrix: runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.9', '>=3'] steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup with: - python-version: '>=3' + python-version: ${{ matrix.python-version }} - run: pip install -U pip setuptools wheel && pip install -U . - run: time python -m unittest -v pdoc.test diff --git a/setup.py b/setup.py index 1902b927..16a7939a 100644 --- a/setup.py +++ b/setup.py @@ -2,8 +2,8 @@ import sys from setuptools import setup, find_packages -if sys.version_info < (3, 7): - sys.exit('ERROR: pdoc requires Python 3.7+') +if sys.version_info < (3, 9): + sys.exit('ERROR: pdoc requires Python 3.9+') def _discover_tests(): @@ -58,5 +58,5 @@ def _discover_tests(): 'write_to': os.path.join('pdoc', '_version.py'), }, test_suite="setup._discover_tests", - python_requires='>= 3.7', + python_requires='>= 3.9', )