diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index dfd49c9..676e681 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -39,7 +39,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index de79e4c..64fb3a7 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -12,22 +12,26 @@ on: jobs: pytest: strategy: + fail-fast: false matrix: platform: [ ubuntu-latest, macos-latest, windows-latest ] - python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ] + python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12" ] + exclude: + - platform: macos-latest + python-version: "3.7" runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install 'PyTest' + python -m pip install pytest setuptools python -m pip install -e . - name: Test with pytest run: | diff --git a/setup.py b/setup.py index 860b705..5c8cd90 100755 --- a/setup.py +++ b/setup.py @@ -192,6 +192,7 @@ def function_three(): 'sphinx < 2', # jinja2 3.0.3 was the last version to have contextfunction that sphinx 1.x needs 'jinja2~=3.0.3', + 'setuptools; python_version>="3.12"', ] }, python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', diff --git a/tox.ini b/tox.ini index 52f9290..864bb65 100644 --- a/tox.ini +++ b/tox.ini @@ -26,6 +26,7 @@ deps = wrapt1.13: wrapt ~= 1.13.0 wrapt1.14: wrapt ~= 1.14.0 coverage + setuptools; python_version>="3.12" [testenv:docs] basepython = python