Skip to content

Commit 219e138

Browse files
Add Python 3.10 and 3.11 to CI.
1 parent bd3c12a commit 219e138

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

.github/workflows/tox.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@ jobs:
1111
strategy:
1212
max-parallel: 4
1313
matrix:
14-
python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
14+
python-version: ['2.7', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11-dev']
1515
pandas-presence: ['with_pandas', 'without_pandas']
1616
env:
1717
PYTHON_VERSION: ${{ matrix.python-version }}
1818
PANDAS_PRESENCE: ${{ matrix.pandas-presence }}
1919
steps:
20-
- uses: actions/checkout@v1
20+
- uses: actions/checkout@v2
2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v1
22+
uses: actions/setup-python@v2
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install dependencies
2626
run: |
2727
python -m pip install --upgrade pip
28-
pip install tox
28+
pip install tox tox-gh-actions
2929
- name: Test with tox
3030
run: |
31-
PYTHON_ENV="py${PYTHON_VERSION//./}"
31+
PYTHON_ENV="py$(echo $PYTHON_VERSION | sed 's/\.//;s/\-dev//')"
3232
tox -e "${PYTHON_ENV}-${PANDAS_PRESENCE}"
3333
- name: Upload coverage to Codecov
3434
uses: codecov/codecov-action@v1.0.10

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
"Programming Language :: Python :: 3.7",
4545
"Programming Language :: Python :: 3.8",
4646
"Programming Language :: Python :: 3.9",
47+
"Programming Language :: Python :: 3.10",
48+
"Programming Language :: Python :: 3.11",
4749
"Topic :: Scientific/Engineering",
4850
],
4951
)

tox.ini

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
[tox]
2-
envlist = {py27,py36,py37,py38,py39}-{with_pandas,without_pandas}
2+
envlist = {py27,py36,py37,py38,py39,py310,py311}-{with_pandas,without_pandas}
3+
4+
[gh-actions]
5+
python =
6+
2.7: py27
7+
3.6: py36
8+
3.7: py37
9+
3.8: py38
10+
3.9: py39
11+
3.10: py310
12+
3.11: py311
313

414
[testenv]
515
deps=

0 commit comments

Comments
 (0)