diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0c3f668..7986892a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,7 @@ jobs: - uses: ./.github/actions/build-docs - name: Run tests - run: make test + run: make test-all - name: Verify typehints run: make lint @@ -124,4 +124,4 @@ jobs: run: poetry install --all-extras - name: Run tests - run: make test + run: make test-all diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9aebeeec..a265a648 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,11 +16,11 @@ We encourage pull requests and other contributions from the community. Before su This project is built using [poetry](https://python-poetry.org/). To learn more about the basics of working with this tool, read [Poetry's basic usage guide](https://python-poetry.org/docs/basic-usage/). -To begin development, active the poetry shell and ensure your dependencies are installed. +To begin development, ensure your dependencies are installed and (optionally) activate the virtualenv. ``` -poetry shell poetry install +eval $(poetry env activate) ``` This library defines several extra dependencies to optionally enhance the SDK's capabilities. Use the following commands to install one or more of the available extras. diff --git a/Makefile b/Makefile index edf84fd9..9ee4463d 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,11 @@ install: .PHONY: test test: #! Run unit tests test: install + @LD_SKIP_DATABASE_TESTS=1 poetry run pytest $(PYTEST_FLAGS) + +.PHONY: test-all +test-all: #! Run unit tests (including database integrations) +test-all: install @poetry run pytest $(PYTEST_FLAGS) .PHONY: lint