Big refactoring
This commit is contained in:
@@ -40,6 +40,9 @@ jobs:
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
- run: pip install -e ".[dev]"
|
||||
- run: alembic upgrade head
|
||||
env:
|
||||
@@ -47,6 +50,15 @@ jobs:
|
||||
- run: pytest --tb=short
|
||||
env:
|
||||
DATABASE_URL: postgresql+asyncpg://test_user:test_pass@localhost:5432/test_db
|
||||
- run: |
|
||||
cd frontend
|
||||
npm ci
|
||||
if node -e "require.resolve('vitest/package.json')" >/dev/null 2>&1; then
|
||||
npm test
|
||||
else
|
||||
echo "vitest not configured; skipping frontend tests"
|
||||
fi
|
||||
npm run build
|
||||
|
||||
deploy:
|
||||
needs: test
|
||||
@@ -65,4 +77,8 @@ jobs:
|
||||
source .venv/bin/activate
|
||||
pip install -e .
|
||||
alembic upgrade head
|
||||
cd frontend
|
||||
npm ci
|
||||
npm run build
|
||||
cd ..
|
||||
sudo systemctl restart stock-data-backend
|
||||
|
||||
Reference in New Issue
Block a user