Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new Pandas v1.5/2.0 comment triggered test workflows #908

Merged
merged 4 commits into from
Mar 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 57 additions & 1 deletion .github/workflows/comment-triggered-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,62 @@ jobs:
application-id: ${{ secrets.COMMENT_BOT_APP_ID }}
application-private-key: ${{ secrets.COMMENT_BOT_APP_PRIVATE_KEY }}

python311_pandas15_fast_tests:
uses: ./.github/workflows/run-on-comment.yml
with:
runs-on: self-hosted
keyword: python3.11-pandas1.5-fast-tests
commands: |
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
application-organization: UCL
secrets:
application-id: ${{ secrets.COMMENT_BOT_APP_ID }}
application-private-key: ${{ secrets.COMMENT_BOT_APP_PRIVATE_KEY }}

python311_pandas15_all_tests:
uses: ./.github/workflows/run-on-comment.yml
with:
runs-on: self-hosted
keyword: python3.11-pandas1.5-all-tests
commands: |
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
application-organization: UCL
secrets:
application-id: ${{ secrets.COMMENT_BOT_APP_ID }}
application-private-key: ${{ secrets.COMMENT_BOT_APP_PRIVATE_KEY }}

python311_pandas20_fast_tests:
uses: ./.github/workflows/run-on-comment.yml
with:
runs-on: self-hosted
keyword: python3.11-pandas2.0-fast-tests
commands: |
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
application-organization: UCL
secrets:
application-id: ${{ secrets.COMMENT_BOT_APP_ID }}
application-private-key: ${{ secrets.COMMENT_BOT_APP_PRIVATE_KEY }}

python311_pandas20_all_tests:
uses: ./.github/workflows/run-on-comment.yml
with:
runs-on: self-hosted
keyword: python3.11-pandas2.0-all-tests
commands: |
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
application-organization: UCL
secrets:
application-id: ${{ secrets.COMMENT_BOT_APP_ID }}
application-private-key: ${{ secrets.COMMENT_BOT_APP_PRIVATE_KEY }}

dummy_job:
uses: ./.github/workflows/run-on-comment.yml
with:
Expand All @@ -44,4 +100,4 @@ jobs:
application-organization: UCL
secrets:
application-id: ${{ secrets.COMMENT_BOT_APP_ID }}
application-private-key: ${{ secrets.COMMENT_BOT_APP_PRIVATE_KEY }}
application-private-key: ${{ secrets.COMMENT_BOT_APP_PRIVATE_KEY }}
15 changes: 11 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@ envlist =
report,
docs,
profile
py{38,39,310,311}-pandas{12,15,20}

[testenv]
basepython =
pypy: {env:TOXPYTHON:pypy}
py33: {env:TOXPYTHON:python3.3}
py34: {env:TOXPYTHON:python3.4}
py35: {env:TOXPYTHON:python3.5}
{py38,docs,profile}: {env:TOXPYTHON:python3.8}
{clean,check,report,codecov,spell}: {env:TOXPYTHON:python3}
setenv =
Expand All @@ -31,6 +28,16 @@ deps =
commands =
{posargs:pytest --cov --cov-report=term-missing -vv tests}

[testenv:py{38,39,310,311}-pandas{12,15,20}]
deps =
pandas12: pandas==1.2.2
pandas15: pandas==1.5.3
pandas20: pandas~=2.0.0rc1
# Use base.in rather than base.txt here to get only direct + unpinned requirements
-r{toxinidir}/requirements/base.in
pytest
pytest-cov

[testenv:spell]
setenv =
SPELLCHECK=1
Expand Down