Guard against concurrent writes #9
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: "Run tests" | |
on: | |
push: | |
jobs: | |
tests: | |
name: tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Run dependencies | |
run: | | |
docker-compose -f docker-compose.yml up -d | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: '3.11' | |
cache: 'pip' | |
cache-dependency-path: poetry.lock | |
- name: Install dependencies | |
run: poetry install --with dev | |
- name: Run tests | |
run: poetry run pytest -vv |