Skip to content

chore: bump version #138

chore: bump version

chore: bump version #138

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.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Setup Python
id: setup
uses: actions/setup-python@v4
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@v3
- 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