mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
perf(ci): run CI-tooling tests once, not on every matrix leg
tests/scripts and tests/ci exercise bossbot scripts and workflow guards — pure CI tooling. They were running on all unit matrix legs (3 Pythons x 2 backends x 3 OSes). Move them to a single test-ci-tooling run inside the Static Checks job. Signed-off-by: phernandez <paul@basicmachines.co>
This commit is contained in:
@@ -54,6 +54,10 @@ jobs:
|
||||
run: |
|
||||
just typecheck
|
||||
|
||||
- name: Run CI tooling tests
|
||||
run: |
|
||||
just test-ci-tooling
|
||||
|
||||
- name: Run linting
|
||||
run: |
|
||||
just lint
|
||||
|
||||
@@ -40,11 +40,15 @@ test-postgres: test-unit-postgres test-int-postgres
|
||||
|
||||
# Run unit tests against SQLite
|
||||
test-unit-sqlite: testmon-seed
|
||||
BASIC_MEMORY_ENV=test uv run pytest -p pytest_mock -v --no-cov {{TESTMON_FLAGS}} --testmon-env=unit-sqlite tests
|
||||
BASIC_MEMORY_ENV=test uv run pytest -p pytest_mock -v --no-cov {{TESTMON_FLAGS}} --testmon-env=unit-sqlite --ignore=tests/scripts --ignore=tests/ci tests
|
||||
|
||||
# Run unit tests against Postgres
|
||||
test-unit-postgres: testmon-seed
|
||||
BASIC_MEMORY_ENV=test BASIC_MEMORY_TEST_POSTGRES=1 uv run pytest -p pytest_mock -v --no-cov {{TESTMON_FLAGS}} --testmon-env=unit-postgres tests
|
||||
BASIC_MEMORY_ENV=test BASIC_MEMORY_TEST_POSTGRES=1 uv run pytest -p pytest_mock -v --no-cov {{TESTMON_FLAGS}} --testmon-env=unit-postgres --ignore=tests/scripts --ignore=tests/ci tests
|
||||
|
||||
# Run CI-tooling tests (bossbot scripts, workflow guards) — once, not per matrix leg
|
||||
test-ci-tooling:
|
||||
BASIC_MEMORY_ENV=test uv run pytest -p pytest_mock -q --no-cov tests/scripts tests/ci
|
||||
|
||||
# Run integration tests against SQLite (excludes semantic tests and on-demand benchmarks —
|
||||
# use just test-semantic / run benchmark files explicitly)
|
||||
|
||||
Reference in New Issue
Block a user