Merge pull request #2 from ljensen505/update-ci-build

updated CI build
This commit is contained in:
Lucas Jensen
2024-05-02 16:02:48 -07:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -23,11 +23,13 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Lint
working-directory: client
run: |
npm install
npm run prettier:check
- name: Build
working-directory: client
run: |
npm install
npm run build

View File

@@ -1,4 +1,4 @@
name: thegrapefruitsduo backend build
name: thegrapefruitsduo fastapi build
on:
push:
@@ -15,6 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
@@ -24,13 +25,16 @@ jobs:
uses: abatilo/actions-poetry@v2
- name: Install dependencies
working-directory: server
run: |
poetry install
- name: Lint with black
working-directory: server
run: |
poetry run black --check .
- name: Test with pytest
working-directory: server
run: |
poetry run pytest -s