Skip to content

Commit

Permalink
Migrate to PyEnv in GitHub Actions so that we can still test on older…
Browse files Browse the repository at this point in the history
… Python versions.
  • Loading branch information
matthewwardrop committed Nov 30, 2023
1 parent 6dae98d commit f87dc27
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,22 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ['2.7', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11-dev']
python-version: ['2.7', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
pandas-presence: ['with_pandas', 'without_pandas']
env:
PYTHON_VERSION: ${{ matrix.python-version }}
PANDAS_PRESENCE: ${{ matrix.pandas-presence }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: gabrielfalcao/pyenv-action@v11
with:
python-version: ${{ matrix.python-version }}
default: "${{ matrix.python-version }}"
command: |
pyenv install "${{ matrix.python-version }}"
pip install -U pip # upgrade pip after installing python
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: |
Expand Down

0 comments on commit f87dc27

Please sign in to comment.