Skip to content

Commit a4a286d

Browse files
authored
Fix PyPy CI (#316)
* Skip mypy for PyPy.
1 parent 4edfeb8 commit a4a286d

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@ jobs:
5252
make services-up
5353
- name: Test
5454
run: |
55-
make test
56-
make services-down
55+
if [[ "${{ matrix.python-version }}" == pypy* ]]; then
56+
SKIP_MYPY=1 make test
57+
else
58+
make test
59+
fi
5760
- name: Minimize uv cache
5861
run: uv cache prune --ci
5962
- name: Upload coverage reports to Codecov

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ setup: develop
2626
develop: install-dev-requirements install-test-requirements
2727

2828
types:
29-
@echo "Type checking Python files"
30-
$(VENV_PATH)/mypy --pretty
29+
@if [ -n "$$SKIP_MYPY" ]; then \
30+
echo "Skipping mypy types check because SKIP_MYPY is set"; \
31+
else \
32+
echo "Type checking Python files"; \
33+
$(VENV_PATH)/mypy --pretty; \
34+
fi
3135
@echo ""
3236

3337
test: types

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ test = [
6262
"fastapi",
6363
"aiohttp",
6464
"wait-for-it",
65-
"mypy",
65+
"mypy; platform_python_implementation!='PyPy'",
6666
"types-decorator",
6767
"types-requests",
6868
"trio",

0 commit comments

Comments
 (0)