33 lines
610 B
YAML
33 lines
610 B
YAML
name: Portfolio Backend CI
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: linux_amd64
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Python 3.10
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: "3.10"
|
|
|
|
- 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: |
|
|
ls -al
|
|
black --check .
|