Skip to content

Commit b8c647b

Browse files
authored
Merge pull request #164 from PeterJCLaw/fix-python-3.11-ci-pygame-install
Fix install of pygame on Python 3.11
2 parents d9dcd38 + 914efb0 commit b8c647b

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/python-test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,16 @@ jobs:
3737
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3838
- name: Check with mypy
3939
run: |
40-
pip install pygame # Needed for examples
40+
if [[ "${{ matrix.python-version }}" = "3.11" ]]
41+
then
42+
# --pre needed for Python 3.11 which doesn't have wheels (and may not
43+
# be fully supported) in version 2.1.2. Once 2.1.3 is released this
44+
# can be removed. Due to https://github.com/pygame/pygame/issues/3572
45+
# we can't apply this for all Python versions.
46+
pip install --pre pygame # Needed for examples
47+
else
48+
pip install pygame # Needed for examples
49+
fi
4150
mypy pythonosc examples
4251
- name: Test with pytest
4352
run: |

0 commit comments

Comments
 (0)