@@ -23,11 +23,13 @@ jobs:
|
|||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
|
working-directory: client
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
npm run prettier:check
|
npm run prettier:check
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
working-directory: client
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
name: thegrapefruitsduo backend build
|
name: thegrapefruitsduo fastapi build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -15,6 +15,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python 3.12
|
- name: Set up Python 3.12
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
@@ -24,13 +25,16 @@ jobs:
|
|||||||
uses: abatilo/actions-poetry@v2
|
uses: abatilo/actions-poetry@v2
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
working-directory: server
|
||||||
run: |
|
run: |
|
||||||
poetry install
|
poetry install
|
||||||
|
|
||||||
- name: Lint with black
|
- name: Lint with black
|
||||||
|
working-directory: server
|
||||||
run: |
|
run: |
|
||||||
poetry run black --check .
|
poetry run black --check .
|
||||||
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
|
working-directory: server
|
||||||
run: |
|
run: |
|
||||||
poetry run pytest -s
|
poetry run pytest -s
|
||||||
Reference in New Issue
Block a user