diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index a0ad493..fb1b2ef 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -35,9 +35,10 @@ jobs: - name: Start PostgreSQL run: | cp pgmq_postgres.template.env pgmq_postgres.env + cp pgmq_tests.template.env pgmq_tests.env make start-db - name: Run tests and collect coverage - run: poetry run pytest tests --cov=pgmq_sqlalchemy.queue --cov-report=xml + run: poetry run pytest tests --cov=pgmq_sqlalchemy.queue --cov-report=xml -n auto tests - name: Upload coverage reports to Codecov with GitHub Action uses: codecov/codecov-action@v4.2.0 env: diff --git a/Makefile b/Makefile index ce599b7..855b18b 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ doc-build: ## Build the documentation doc-serve: ## Serve the documentation cd doc && poetry run sphinx-autobuild -nW . _build -.PHONY: test-local test-docker clear-db start-db +.PHONY: install test-local test-docker test-docker-rebuild clear-db start-db exec-db doc-build doc-serve # generate help from comments .PHONY: help