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

Tox Cleanup #1749

Merged
merged 7 commits into from Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/test-common.yml
Expand Up @@ -58,8 +58,6 @@ jobs:
pip install codecov tox

- name: Run Tests
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand All @@ -69,4 +67,4 @@ jobs:
./scripts/runtox.sh "py${{ matrix.python-version }}$" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch --ignore=tests/integrations
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
codecov --file coverage.xml
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-aiohttp.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test aiohttp
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-asgi.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test asgi
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-aws_lambda.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test aws_lambda
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-beam.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test beam
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-boto3.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test boto3
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-bottle.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test bottle
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-celery.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test celery
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-chalice.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test chalice
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-django.yml
Expand Up @@ -65,8 +65,6 @@ jobs:
pip install codecov tox

- name: Test django
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-falcon.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test falcon
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-fastapi.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test fastapi
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-flask.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test flask
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-gcp.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test gcp
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-httpx.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test httpx
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-pure_eval.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test pure_eval
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-pymongo.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test pymongo
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-pyramid.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test pyramid
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-quart.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test quart
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-redis.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test redis
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-rediscluster.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test rediscluster
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-requests.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test requests
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-rq.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test rq
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-sanic.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test sanic
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-sqlalchemy.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test sqlalchemy
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-starlette.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test starlette
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-tornado.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test tornado
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test-integration-trytond.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
pip install codecov tox

- name: Test trytond
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down
23 changes: 6 additions & 17 deletions scripts/runtox.sh
@@ -1,4 +1,8 @@
#!/bin/bash

# Usage: sh scripts/runtox.sh py3.7 <pytest-args>
# Runs all environments with substring py3.7 and the given arguments for pytest

set -ex

if [ -n "$TOXPATH" ]; then
Expand All @@ -9,22 +13,7 @@ else
TOXPATH=./.venv/bin/tox
fi

# Usage: sh scripts/runtox.sh py3.7 <pytest-args>
# Runs all environments with substring py3.7 and the given arguments for pytest

if [ -n "$1" ]; then
searchstring="$1"
elif [ -n "$CI_PYTHON_VERSION" ]; then
searchstring="$(echo py$CI_PYTHON_VERSION | sed -e 's/pypypy/pypy/g' -e 's/-dev//g')"
if [ "$searchstring" = "pypy-2.7" ]; then
searchstring=pypy
fi
elif [ -n "$AZURE_PYTHON_VERSION" ]; then
searchstring="$(echo py$AZURE_PYTHON_VERSION | sed -e 's/pypypy/pypy/g' -e 's/-dev//g')"
if [ "$searchstring" = pypy2 ]; then
searchstring=pypy
fi
fi
searchstring="$1"

export TOX_PARALLEL_NO_SPINNER=1
exec $TOXPATH -p auto -e $($TOXPATH -l | grep "$searchstring" | tr $'\n' ',') -- "${@:2}"
exec $TOXPATH -p auto -e "$($TOXPATH -l | grep "$searchstring" | tr $'\n' ',')" -- "${@:2}"
2 changes: 0 additions & 2 deletions scripts/split-tox-gh-actions/ci-yaml.txt
Expand Up @@ -45,8 +45,6 @@ jobs:
pip install codecov tox

- name: Test {{ framework }}
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand Down