Files
TheGrapefruitsDuo/.github/workflows/server-build.yml
2024-05-02 15:31:11 -07:00

37 lines
658 B
YAML

name: thegrapefruitsduo 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.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install poetry
uses: abatilo/actions-poetry@v2
- name: Install dependencies
run: |
poetry install
- name: Lint with black
run: |
poetry run black --check .
- name: Test with pytest
run: |
poetry run pytest -s