Skip to content

sentry middleware

sentry middleware #235

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
python-version: [ 3.8, 3.9, '3.10', 3.11]
poetry-version: [ 1.3.2 ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v4
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install --only main,dev
- name: Run tests
run: scripts/test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
fail_ci_if_error: true
verbose: true
code-quality:
strategy:
fail-fast: false
matrix:
python-version: [ 3.8 ]
poetry-version: [ 1.3.2 ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v4
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install --only main,code-quality
- name: Run pre-commit
run: poetry run pre-commit run --all-files --show-diff-on-failure