Skip to content

Bump sentry-sdk from 1.40.4 to 2.8.0 #429

Bump sentry-sdk from 1.40.4 to 2.8.0

Bump sentry-sdk from 1.40.4 to 2.8.0 #429

Workflow file for this run

name: Continuous integration
on:
push:
branches: ["*"]
tags: ["v*"]
pull_request:
branches: ["main"]
jobs:
test:
runs-on: ubuntu-latest
services:
rabbitmq:
image: rabbitmq:3
ports:
- 5672:5672
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/[email protected]
with:
poetry-version: "1.4.2"
- name: Install dependancies
run: |
poetry install
- name: Lint
run: |
poetry run black --check .
poetry run mypy --install-types --non-interactive .
poetry run ruff check .
- name: Test
run: poetry run pytest
- name: Build docs
run: poetry run sphinx-build -b html docs docs/_build/html
docker-image:
needs: [test]
if: ${{ github.event_name != 'pull_request' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: docker/metadata-action@v4
id: meta
with:
images: |
ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
type=sha,prefix={{branch}}-,enable=${{ github.ref_type != 'tag' }}
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}