diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 979b351..b5b8cff 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,8 +52,11 @@ jobs: make services-up - name: Test run: | - make test - make services-down + if [[ "${{ matrix.python-version }}" == pypy* ]]; then + SKIP_MYPY=1 make test + else + make test + fi - name: Minimize uv cache run: uv cache prune --ci - name: Upload coverage reports to Codecov diff --git a/Makefile b/Makefile index 445a345..e35b0a5 100644 --- a/Makefile +++ b/Makefile @@ -26,8 +26,12 @@ setup: develop develop: install-dev-requirements install-test-requirements types: - @echo "Type checking Python files" - $(VENV_PATH)/mypy --pretty + @if [ -n "$$SKIP_MYPY" ]; then \ + echo "Skipping mypy types check because SKIP_MYPY is set"; \ + else \ + echo "Type checking Python files"; \ + $(VENV_PATH)/mypy --pretty; \ + fi @echo "" test: types diff --git a/pyproject.toml b/pyproject.toml index 0b5e9da..f20dbb9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,7 +62,7 @@ test = [ "fastapi", "aiohttp", "wait-for-it", - "mypy", + "mypy; platform_python_implementation!='PyPy'", "types-decorator", "types-requests", "trio",