initial commit
This commit is contained in:
36
server/.github/workflows/build.yml
vendored
Normal file
36
server/.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
||||
Reference in New Issue
Block a user