tests
This commit is contained in:
+20
-15
@@ -9,32 +9,31 @@ on:
|
||||
jobs:
|
||||
backend-tests:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: backend
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
enable-cache: true
|
||||
version: "latest"
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.13"
|
||||
|
||||
- name: Install uv
|
||||
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
|
||||
- name: Sync dependencies
|
||||
run: uv sync
|
||||
|
||||
- name: Run Pytest
|
||||
run: uv run pytest
|
||||
run: |
|
||||
cd backend
|
||||
uv sync --dev
|
||||
uv run pytest
|
||||
env:
|
||||
DATABASE_URL: "sqlite:///:memory:"
|
||||
|
||||
frontend-check:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: frontend
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -43,9 +42,15 @@ jobs:
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
cache: 'npm'
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
run: |
|
||||
cd frontend
|
||||
npm install
|
||||
|
||||
- name: Svelte Check & Lint
|
||||
run: npm run check
|
||||
run: |
|
||||
cd frontend
|
||||
npm run check
|
||||
|
||||
Reference in New Issue
Block a user