From d9e312589f47947c5fffb1354b069bbdd360def9 Mon Sep 17 00:00:00 2001 From: lukas Date: Wed, 1 Jan 2025 13:58:21 +0100 Subject: [PATCH] feat: pytest flow --- .github/workflows/test.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5ca8a70 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: Test + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + services: + postgres: + image: postgres + ports: + - 5432:5432 + env: + POSTGRES_DB: db + POSTGRES_USER: postgres + POSTGRES_PASSWORD: change-password + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.13' + + - name: Install Uv + run: pip install uv + + - name: Run tests + env: + DATABASE_HOST: localhost + run: uv run -- pytest .