feat: add sentry to project #23
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: Pytest in docker compose | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: create coverage folder | |
run: | | |
mkdir tests_output | |
chmod a+w tests_output | |
- name: Run docker-compose | |
uses: hoverkraft-tech/compose-action@v2.0.1 | |
with: | |
compose-file: "docker-compose.yaml" | |
- name: Execute tests in the running services | |
run: | | |
docker compose run sync | |
- name: Pytest coverage comment | |
uses: MishaKav/pytest-coverage-comment@main | |
with: | |
pytest-xml-coverage-path: tests_output/coverage.xml | |
title: Integration tests Coverage | |
badge-title: Integration tests Coverage | |
junitxml-path: tests_output/pytest.xml | |
junitxml-title: JUnit Xml Summary |