Removed tox from CI and called unittest directly. #361
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pyrollbar CI | |
on: | |
push: | |
branches: [ master ] | |
tags: [ v* ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: [3.6, 3.7, 3.8, 3.9, '3.10', 3.11] | |
framework: | |
- NONE | |
- FLASK_VERSION=1.1.4 | |
- FLASK_VERSION=2.3.3 | |
- FLASK_VERSION=3.0.3 | |
- DJANGO_VERSION=3.2.25 | |
- DJANGO_VERSION=4.2.15 | |
- DJANGO_VERSION=5.0.8 | |
- TWISTED_VERSION=20.3.0 | |
- TWISTED_VERSION=21.7.0 | |
- TWISTED_VERSION=22.10.0 | |
- PYRAMID_VERSION=1.10.8 | |
- PYRAMID_VERSION=2.0.2 | |
- STARLETTE_VERSION=0.30.0 httpx==0.24.1 python-multipart==0.0.9 | |
- STARLETTE_VERSION=0.38.2 httpx==0.27.0 python-multipart==0.0.9 | |
- FASTAPI_VERSION=0.101.1 httpx==0.24.1 python-multipart==0.0.9 | |
- FASTAPI_VERSION=0.112.1 httpx==0.27.0 python-multipart==0.0.9 | |
exclude: | |
# Test frameworks on the python versions they support, according to pypi registry | |
# Flask | |
- framework: FLASK_VERSION=2.3.3 | |
python-version: 3.6 | |
- framework: FLASK_VERSION=2.3.3 | |
python-version: 3.7 | |
- framework: FLASK_VERSION=3.0.3 | |
python-version: 3.6 | |
- framework: FLASK_VERSION=3.0.3 | |
python-version: 3.7 | |
# Django | |
- framework: DJANGO_VERSION=3.2.25 | |
python-version: 3.11 | |
- framework: DJANGO_VERSION=4.2.15 | |
python-version: 3.6 | |
- framework: DJANGO_VERSION=4.2.15 | |
python-version: 3.7 | |
- framework: DJANGO_VERSION=5.0.8 | |
python-version: 3.6 | |
- framework: DJANGO_VERSION=5.0.8 | |
python-version: 3.7 | |
- framework: DJANGO_VERSION=5.0.8 | |
python-version: 3.8 | |
- framework: DJANGO_VERSION=5.0.8 | |
python-version: 3.9 | |
# Twisted | |
- framework: TWISTED_VERSION=20.3.0 | |
python-version: 3.11 | |
- framework: TWISTED_VERSION=22.10.0 | |
python-version: 3.6 | |
# Starlette | |
- framework: STARLETTE_VERSION=0.30.0 httpx==0.24.1 python-multipart==0.0.9 | |
python-version: 3.6 | |
- framework: STARLETTE_VERSION=0.30.0 httpx==0.24.1 python-multipart==0.0.9 | |
python-version: 3.7 | |
- framework: STARLETTE_VERSION=0.38.2 httpx==0.27.0 python-multipart==0.0.9 | |
python-version: 3.6 | |
- framework: STARLETTE_VERSION=0.38.2 httpx==0.27.0 python-multipart==0.0.9 | |
python-version: 3.7 | |
# FastAPI | |
- framework: FASTAPI_VERSION=0.101.1 httpx==0.24.1 python-multipart==0.0.9 | |
python-version: 3.6 | |
- framework: FASTAPI_VERSION=0.101.1 httpx==0.24.1 python-multipart==0.0.9 | |
python-version: 3.7 | |
- framework: FASTAPI_VERSION=0.112.1 httpx==0.27.0 python-multipart==0.0.9 | |
python-version: 3.6 | |
- framework: FASTAPI_VERSION=0.112.1 httpx==0.27.0 python-multipart==0.0.9 | |
python-version: 3.7 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Python 3.6 dependencies | |
if: ${{ contains(matrix.python-version, '3.6') }} | |
# typing-extensions dropped support for Python 3.6 in version 4.2 | |
run: pip install "typing-extensions<4.2" requests==2.27.0 blinker==1.5 immutables==0.19 webob blinker httpx aiocontextvars | |
- name: Install Python 3.7 dependencies | |
if: ${{ contains(matrix.python-version, '3.7') }} | |
# immutables dropped support for Python<3.8 in version 0.20 | |
run: pip install immutables==0.19 | |
- name: Set the framework | |
if: ${{ matrix.framework != 'NONE' }} | |
run: echo ${{ matrix.framework }} >> $GITHUB_ENV | |
- name: Install Flask | |
if: ${{ contains(matrix.framework, 'FLASK_VERSION') }} | |
run: pip install Flask==$FLASK_VERSION | |
- name: Install Twisted | |
if: ${{ contains(matrix.framework, 'TWISTED_VERSION') }} | |
run: pip install Twisted==$TWISTED_VERSION idna==2.10 | |
- name: Install Django | |
if: ${{ contains(matrix.framework, 'DJANGO_VERSION') }} | |
run: pip install Django==$DJANGO_VERSION | |
- name: Install Pyramid | |
if: ${{ contains(matrix.framework, 'PYRAMID_VERSION') }} | |
run: pip install pyramid==$PYRAMID_VERSION | |
- name: Install Starlette | |
if: ${{ contains(matrix.framework, 'STARLETTE_VERSION') }} | |
run: pip install starlette==$STARLETTE_VERSION | |
- name: Install FastAPI | |
if: ${{ contains(matrix.framework, 'FASTAPI_VERSION') }} | |
run: pip install fastapi==$FASTAPI_VERSION | |
- name: Run tests | |
run: python -m unittest rollbar.test.discover |