Files
TheGrapefruitsDuo/server/.github/workflows/build.yml
Lucas Jensen 5d67c0c2b2 initial commit
2024-05-01 09:19:01 -07:00

37 lines
658 B
YAML

name: thegrapefruitsduo backend 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