Skip to content

Commit

Permalink
Remove manual installation of Python 3.11 in workflow jobs and specif…
Browse files Browse the repository at this point in the history
…y `basepython` in `tox.ini` (#931)
  • Loading branch information
matt-graham authored Apr 5, 2023
1 parent aaa5e37 commit 5655119
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/comment-triggered-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ jobs:
runs-on: self-hosted
keyword: python3.11-pandas1.5-fast-tests
commands: |
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt update
sudo apt install python3.11 -y
tox -v -e py311-pandas15,report -- pytest --skip-slow --cov --cov-report=term-missing -vv tests
description: Run of fast tests on Python v3.11 with Pandas v1.5
timeout-minutes: 8640
Expand All @@ -57,9 +54,6 @@ jobs:
runs-on: self-hosted
keyword: python3.11-pandas1.5-all-tests
commands: |
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt update
sudo apt install python3.11 -y
tox -v -e py311-pandas15,report -- pytest --cov --cov-report=term-missing -vv tests
description: Run of all tests on Python v3.11 with Pandas v1.5
timeout-minutes: 8640
Expand All @@ -74,9 +68,6 @@ jobs:
runs-on: self-hosted
keyword: python3.11-pandas2.0-fast-tests
commands: |
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt update
sudo apt install python3.11 -y
tox -v -e py311-pandas20,report -- pytest --skip-slow --cov --cov-report=term-missing -vv tests
description: Run of fast tests on Python v3.11 with Pandas v2.0
timeout-minutes: 8640
Expand All @@ -91,9 +82,6 @@ jobs:
runs-on: self-hosted
keyword: python3.11-pandas2.0-all-tests
commands: |
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt update
sudo apt install python3.11 -y
tox -v -e py311-pandas20,report -- pytest --cov --cov-report=term-missing -vv tests
description: Run of all tests on Python v3.11 with Pandas v2.0
timeout-minutes: 8640
Expand Down
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ envlist =
basepython =
{py38,docs,profile}: {env:TOXPYTHON:python3.8}
{clean,check,report,codecov,spell}: {env:TOXPYTHON:python3}
py39: {env:TOXPYTHON:python3.9}
py310: {env:TOXPYTHON:python3.10}
py311: {env:TOXPYTHON:python3.11}
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
Expand All @@ -32,7 +35,7 @@ commands =
deps =
pandas12: pandas==1.2.2
pandas15: pandas==1.5.3
pandas20: pandas~=2.0.0rc1
pandas20: pandas==2.0.0
# Use base.in rather than base.txt here to get only direct + unpinned requirements
-r{toxinidir}/requirements/base.in
pytest
Expand Down

0 comments on commit 5655119

Please sign in to comment.