Skip to content

Commit 3fe8560

Browse files
Migrate to PyEnv in GitHub Actions so that we can still test on older Python versions.
1 parent 6dae98d commit 3fe8560

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/tox.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,23 @@ 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+
command: |
25+
pip install -U pip # upgrade pip after installing python
26+
- name: Check Pyenv
27+
run: |
28+
pyenv versions
2529
- name: Install dependencies
2630
run: |
27-
python -m pip install --upgrade pip
2831
pip install tox tox-gh-actions
2932
- name: Test with tox
3033
run: |

0 commit comments

Comments
 (0)