From 5e91069000890acd234b2710bb8415b132844eb7 Mon Sep 17 00:00:00 2001 From: Matthew Wardrop Date: Mon, 11 Nov 2024 14:35:39 -0800 Subject: [PATCH] Install `pyenv` manually so we can get more recent versions of pyenv (and enable tests for 3.13). --- .github/workflows/tox.yml | 24 ++++++++++++++++++------ tox.ini | 3 ++- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index ebb6348..3618713 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -21,14 +21,26 @@ jobs: PANDAS_PRESENCE: ${{ matrix.pandas-presence }} steps: - uses: actions/checkout@v2 - - uses: gabrielfalcao/pyenv-action@v17 + - name: Set up Python ${{ matrix.python-version }} + id: gha_python + uses: actions/setup-python@v4 with: - default: "${{ matrix.python-version }}" - - name: Install Python ${{ matrix.python-version }} + python-version: ${{ matrix.python-version }} + continue-on-error: true + - name: Install PyEnv + if: job.steps.gha_python.status == failure() run: | - pyenv install "${{ matrix.python-version }}" - pyenv local "${{ matrix.python-version }}" - pyenv versions + curl https://pyenv.run | bash + PYENV_ROOT="$HOME/.pyenv" + echo "$PYENV_ROOT/bin" >> $GITHUB_PATH + echo "$PYENV_ROOT/shims" >> $GITHUB_PATH + echo "PYENV_ROOT=$PYENV_ROOT" >> $GITHUB_ENV + - name: Install Python ${{ matrix.python-version }} using PyEnv + if: job.steps.gha_python.status == failure() + run: | + pyenv install "${{ matrix.python-version }}" + pyenv local "${{ matrix.python-version }}" + pyenv versions - name: Install dependencies run: | pip install -U pip diff --git a/tox.ini b/tox.ini index 4e599c0..58677a1 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = {py36,py37,py38,py39,py310,py311,py312}-{with_pandas,without_pandas} +envlist = {py36,py37,py38,py39,py310,py311,py312,py313}-{with_pandas,without_pandas} [gh-actions] python = @@ -10,6 +10,7 @@ python = 3.10: py310 3.11: py311 3.12: py312 + 3.13: py313 [testenv] deps=