fix(ci): exclude E2E tests requiring Docker-in-Docker from CI

- Add missing pytest markers (e2e, requires_docker) to pyproject.toml
- Update CI workflow to skip E2E tests with -m "not e2e"
- Update integration test documentation with CI configuration notes
- E2E tests can still be run locally with: pytest -m e2e

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-11 18:03:47 +00:00
parent bf8f295f3b
commit 624b1ddb57
3 changed files with 29 additions and 2 deletions
+23 -1
View File
@@ -359,7 +359,29 @@ docker volume prune -f
## CI/CD Integration
### GitHub Actions Example
### GitHub Actions - Current Configuration
The DocuElevate CI workflow (`.github/workflows/tests.yaml`) **excludes E2E tests** by default because they require Docker-in-Docker (testcontainers), which requires additional configuration in GitHub Actions.
```yaml
- name: Run Tests
# Exclude E2E tests - they require Docker-in-Docker (testcontainers)
run: pytest tests/ -v --cov=app -m "not e2e"
```
**To run E2E tests locally:**
```bash
pytest -m e2e -v
```
**To run all tests including E2E locally:**
```bash
pytest tests/ -v
```
### GitHub Actions with E2E Support (Optional)
If you want to enable E2E tests in CI, you need Docker-in-Docker setup:
```yaml
name: Integration Tests