fix: use virtual environment for Python dependencies in CI
This commit is contained in:
@@ -26,19 +26,23 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
cd dashboard/backend
|
||||
pip3 install --break-system-packages -r requirements.txt
|
||||
pip3 install --break-system-packages -r requirements-dev.txt
|
||||
pip3 install --break-system-packages pytest-timeout
|
||||
python3 -m venv venv
|
||||
. venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
pip install -r requirements-dev.txt
|
||||
pip install pytest-timeout
|
||||
|
||||
- name: Run unit tests
|
||||
run: |
|
||||
cd dashboard/backend
|
||||
. venv/bin/activate
|
||||
pytest tests/unit/ -v --timeout=30 -x
|
||||
echo "✅ Unit tests passed"
|
||||
|
||||
- name: Run integration tests
|
||||
run: |
|
||||
cd dashboard/backend
|
||||
. venv/bin/activate
|
||||
pytest tests/integration/ -v --timeout=30 -x
|
||||
echo "✅ Integration tests passed"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user