Skip to content

chore(deps-dev): Bump pre-commit from 3.7.0 to 3.7.1 #174

chore(deps-dev): Bump pre-commit from 3.7.0 to 3.7.1

chore(deps-dev): Bump pre-commit from 3.7.0 to 3.7.1 #174

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
jobs:
test:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10']
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Setup Python
id: setup
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
if: steps.setup.outputs.cache-hit != 'true'
run: poetry install
- name: Run unit tests with pytest
run: |
poetry run pytest ./tests
int:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run integration tests
run: |
docker-compose -f ./int/docker-compose.yml run tests
- name: Print logs on failure
if: failure()
run: |
docker-compose -f ./int/docker-compose.yml logs
- name: Clean up integration tests
if: always()
run: |
docker-compose -f ./int/docker-compose.yml down