diff --git a/scripts/split-tox-gh-actions/ci-yaml-test-py27-snippet.txt b/scripts/split-tox-gh-actions/ci-yaml-test-py27-snippet.txt new file mode 100644 index 0000000000..8cf2dcbb69 --- /dev/null +++ b/scripts/split-tox-gh-actions/ci-yaml-test-py27-snippet.txt @@ -0,0 +1,29 @@ + test-py27: + name: {{ framework }}, python 2.7, ubuntu-20.04 + runs-on: ubuntu-20.04 + container: python:2.7 + timeout-minutes: 30 +{{ services }} + + steps: + - uses: actions/checkout@v3 + + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + + - name: Test {{ framework }} + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase + + # Run tests + ./scripts/runtox.sh "py2.7-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i