Skip to content

Commit

Permalink
Add Python 3.10 and 3.11 to CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwardrop committed Oct 9, 2022
1 parent bd3c12a commit 219e138
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
python-version: ['2.7', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11-dev']
pandas-presence: ['with_pandas', 'without_pandas']
env:
PYTHON_VERSION: ${{ matrix.python-version }}
PANDAS_PRESENCE: ${{ matrix.pandas-presence }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
pip install tox tox-gh-actions
- name: Test with tox
run: |
PYTHON_ENV="py${PYTHON_VERSION//./}"
PYTHON_ENV="py$(echo $PYTHON_VERSION | sed 's/\.//;s/\-dev//')"
tox -e "${PYTHON_ENV}-${PANDAS_PRESENCE}"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.0.10
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
"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",
"Topic :: Scientific/Engineering",
],
)
12 changes: 11 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
[tox]
envlist = {py27,py36,py37,py38,py39}-{with_pandas,without_pandas}
envlist = {py27,py36,py37,py38,py39,py310,py311}-{with_pandas,without_pandas}

[gh-actions]
python =
2.7: py27
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311

[testenv]
deps=
Expand Down

0 comments on commit 219e138

Please sign in to comment.