Skip to content

refactor(fastapi): move os out of chat #6

refactor(fastapi): move os out of chat

refactor(fastapi): move os out of chat #6

name: FastAPI test
on:
push:
branches: [ "main" ]
paths:
- 'fastapi/**'
pull_request:
branches: [ "main" ]
paths:
- 'fastapi/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r fastapi/requirements.txt
- name: Test with pytest
run: pytest fastapi/tests