Rename variables and deps update (#93) #253
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: | |
test: | |
runs-on: ubuntu-22.04 | |
container: | |
image: python:3.11 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
env: | |
TESTCONTAINERS_HOST_OVERRIDE: "host.docker.internal" | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Install and configure Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.5.1 | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- name: Run tests | |
run : | | |
# PyYaml is required until docker-compose is migrated to v2 | |
pip install pyyaml==5.3.1 | |
pip install docker-compose | |
poetry install --no-interaction --no-ansi | |
docker-compose version | |
poetry run python -m pytest |