Skip to content

Commit

Permalink
Test on Python 3.12, drop Python 3.7 tests (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcbegley authored Jan 6, 2024
1 parent 5b6013d commit 71b3070
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:

- name: Install dependencies
run: npm ci
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v1
with:
python-version: '3.10'
python-version: '3.12'

- name: Install Python dependencies
run: python -m pip install -r requirements-dev.txt
Expand Down Expand Up @@ -100,10 +100,10 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v1
with:
python-version: '3.10'
python-version: '3.12'

- name: Install Python dependencies
run: python -m pip install -r requirements-dev.txt
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v1
with:
python-version: '3.10'
python-version: '3.12'
- name: Install Dash
run: python -m pip install -r requirements-dev.txt
- name: Build dash-bootstrap-components
Expand All @@ -51,7 +51,7 @@ jobs:
strategy:
max-parallel: 6
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
services:
hub:
image: selenium/hub:3.141.59-gold
Expand All @@ -62,19 +62,19 @@ jobs:
HUB_PORT: 4444
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v1
with:
python-version: '3.10'
python-version: '3.12'
- name: Set up Python ${{ matrix.python-version }}
if: matrix.python-version != '3.10'
if: matrix.python-version != '3.12'
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install nox
run: python3.10 -m pip install -U nox
run: python3.12 -m pip install -U nox
- name: Lint Python source
if: matrix.python-version == '3.10'
if: matrix.python-version == '3.12'
run: nox -s lint
- uses: actions/download-artifact@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def format_(session):
session.run("isort", *SOURCES)


@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"])
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"])
def test(session):
session.install("pytest")
session.install("dash[testing]>=2.0.0")
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ def _get_long_description():
classifiers=[
"Framework :: Dash",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
extras_require={"pandas": ["numpy", "pandas"]},
python_requires=">=3.7, <4",
python_requires=">=3.8, <4",
)

0 comments on commit 71b3070

Please sign in to comment.