update-readme (#1)

Reviewed-on: #1
This commit is contained in:
Lucas Jensen
2025-03-15 04:27:49 +00:00
parent 3e27343a30
commit 77003707ab
4 changed files with 5 additions and 4 deletions

View File

@@ -0,0 +1,40 @@
name: fastapi build
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.13
uses: actions/setup-python@v3
with:
python-version: "3.13"
- name: Install poetry
uses: abatilo/actions-poetry@v2
- name: Install dependencies
working-directory: server
run: |
poetry install
- name: Lint with black
working-directory: server
run: |
poetry run black --check .
- name: Test with pytest
working-directory: server
run: |
poetry run pytest -s