Skip to content

Commit 62b0b82

Browse files
Migrate to PyEnv in GitHub Actions so that we can still test on older Python versions.
1 parent b051fe4 commit 62b0b82

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/tox.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,24 @@ jobs:
1111
strategy:
1212
max-parallel: 4
1313
matrix:
14-
python-version: ['2.7', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11-dev']
14+
python-version: ['2.7', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
1515
pandas-presence: ['with_pandas', 'without_pandas']
1616
env:
1717
PYTHON_VERSION: ${{ matrix.python-version }}
1818
PANDAS_PRESENCE: ${{ matrix.pandas-presence }}
1919
steps:
2020
- uses: actions/checkout@v2
21-
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v2
21+
- uses: gabrielfalcao/pyenv-action@v17
2322
with:
24-
python-version: ${{ matrix.python-version }}
23+
default: "${{ matrix.python-version }}"
24+
- name: Install Python ${{ matrix.python-version }}
25+
run: |
26+
pyenv install "${{ matrix.python-version }}"
27+
pyenv local "${{ matrix.python-version }}"
28+
pyenv versions
2529
- name: Install dependencies
2630
run: |
27-
python -m pip install --upgrade pip
31+
pip install -U pip
2832
pip install tox tox-gh-actions
2933
- name: Test with tox
3034
run: |

0 commit comments

Comments
 (0)