Skip to content

fix(docker): TT-183-change docker compose command #29

fix(docker): TT-183-change docker compose command

fix(docker): TT-183-change docker compose command #29

name: Tests
on:
push:
branches: [main, feat/*]
pull_request:
branches: [main, feat/*]
workflow_dispatch:
jobs:
unit_tests:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run unit tests and build coverage report
run: ci/unit_tests.sh
coverage_report:
strategy:
matrix:
python-version: ["3.10"]
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run unit tests and build coverage report
run: ci/coverage_report.sh
- name: Comment coverage report
uses: MishaKav/[email protected]
if: ${{ (github.actor != 'dependabot[bot]')}}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Run unit tests and build coverage report
run: ci/pylint.sh
integration_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run integration tests
run: ci/integration_tests.sh