Skip to content

refactor bidding logic #25

refactor bidding logic

refactor bidding logic #25

Workflow file for this run

name: Run tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: test_db
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install Poetry
run: |
pip install poetry
poetry self update
- name: Install dependencies
run: poetry install
- name: Run all tests
run: |
poetry run pytest src
env:
# The hostname used to communicate with the PostgreSQL service container
DATABASE_URL: postgresql://postgres:password@localhost:5432/test_db