feat: Add CD pipeline with deploy to test target #33
@@ -47,17 +47,17 @@ jobs:
|
||||
|
||||
- name: Setup Python
|
||||
run: |
|
||||
python3 -m venv .venv
|
||||
python3 -m venv /tmp/ci-venv-test
|
||||
if [ -f pyproject.toml ]; then
|
||||
.venv/bin/pip install --quiet -e ".[dev]"
|
||||
/tmp/ci-venv-test/bin/pip install --quiet -e ".[dev]"
|
||||
else
|
||||
echo "No pyproject.toml, skipping dev install"
|
||||
/tmp/ci-venv-test/bin/pip install --quiet pytest
|
||||
fi
|
||||
|
||||
- name: Run tests (exclude E2E)
|
||||
run: |
|
||||
if [ -d tests ]; then
|
||||
.venv/bin/pytest tests/ -m "not e2e" -x -q
|
||||
/tmp/ci-venv-test/bin/pytest tests/ -m "not e2e" -x -q
|
||||
else
|
||||
echo "No tests/ directory, skipping tests"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user