Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,18 +335,29 @@ pytest -n auto

### GitHub Actions

The CI pipeline tests all backends:
The CI pipeline runs a matrix job per backend. Each backend uses the commands below:

```yaml
# Local backends run in parallel
pytest -m "memory or pickle" -n auto
```bash
# Local backends (memory, pickle, and other non-external tests)
pytest -m "not mongo and not sql and not redis and not s3"

# External backends run sequentially for stability
# MongoDB backend
pytest -m mongo
pytest -m redis

# PostgreSQL/SQL backend
pytest -m sql

# Redis backend
pytest -m redis

# S3 backend
pytest -m s3
```

Note: local tests do not use `pytest-xdist` (`-n`) in CI. External backends
(MongoDB, PostgreSQL, Redis, S3) each run in their own isolated matrix job with
the corresponding Docker service started beforehand.

### Environment Variables

- `CACHIER_TEST_VS_DOCKERIZED_MONGO`: Use real MongoDB in CI
Expand Down