diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index 589caa429..829be8c7b 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -16,7 +16,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, ubuntu-latest, windows-latest] - python-version: [3.8, 3.9, "3.10", 3.11, 3.12, 3.13] + python-version: [3.9, "3.10", 3.11, 3.12, 3.13] steps: - uses: actions/checkout@v3 @@ -50,6 +50,13 @@ jobs: TEST_NO_UI: 1 run: | python -m pytest tests/ -n auto -v + - name: Run PyTest Benchmark + env: + PYTEST_SECRETS_KEY: ${{ secrets.PYTEST_SECRETS_KEY }} + TEST_VERBOSE_IMAGES: 0 + TEST_NO_UI: 1 + run: | + python -m pytest tests/test_benchmark.py --benchmark-enable --benchmark-min-rounds=10 - name: Build wheel run: | echo "Building wheel" @@ -122,7 +129,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['cp38-cp38', 'cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312', 'cp313-cp313'] + python-version: ['cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312', 'cp313-cp313'] manylinux-version: ['manylinux_2_28_x86_64', 'musllinux_1_2_x86_64'] # GHA doesn't support manylinux_2_24_aarch64 steps: @@ -170,10 +177,10 @@ jobs: echo "Dists built:" ls -lah dist/ - - name: Set up Python 3.8 (just for PyPi upload) + - name: Set up Python 3.11 (just for PyPi upload) uses: actions/setup-python@v3 with: - python-version: 3.8 + python-version: 3.11 - name: Upload wheel if: ${{ github.event_name == 'release' && github.event.action == 'published' && !github.event.release.prerelease }} run: | diff --git a/Makefile b/Makefile index ffa7f541a..61d1a0dbd 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -.PHONY: build clean run install test +.PHONY: build clean run install test benchmark docs all: build @@ -65,7 +65,7 @@ uninstall: ${PY} -m pip uninstall pyboy test: export DEBUG=1 -test: clean test_pypy test_cpython_doctest build test_cython +test: clean test_pypy test_cpython_doctest build test_cython benchmark test_cpython_doctest: ${PY} -m pytest pyboy/ ${PYTEST_ARGS} @@ -78,9 +78,13 @@ test_pypy: test_all: test +benchmark: + ${PY} -m pytest -m benchmark tests/test_benchmark.py --benchmark-enable --benchmark-min-rounds=10 + docs: clean - bash -O extglob -c 'rm -rf -- ${ROOT_DIR}/docs/!(templates|CNAME)' + find ./docs -type f ! -path "./docs/templates/*" ! -path "./docs/CNAME" ! -name "*.png" -exec rm -rf {} + mkdir -p ${ROOT_DIR}/docs/templates + cd ${ROOT_DIR}/pyboy/plugins && ${PY} manager_gen.py pdoc --html --force -c latex_math=True -c sort_identifiers=False -c show_type_annotations=True --template-dir docs/templates pyboy cp -r html/pyboy/ ${ROOT_DIR}/docs/ rm -rf html diff --git a/README.md b/README.md index 93d9a38fa..a2b275f0a 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@

-__If you have any questions, or just want to chat, [join us on Discord](https://discord.gg/Zrf2nyH).__ +__If you have any questions, or just want to chat, [join us on Discord](https://discord.gg/wUbag3KNqQ).__ -[![Discord](https://img.shields.io/discord/584149554132418570?style=for-the-badge&logo=Discord&label=PyBoy)](https://discord.gg/Zrf2nyH) +[![Discord](https://img.shields.io/discord/584149554132418570?style=for-the-badge&logo=Discord&label=PyBoy)](https://discord.gg/wUbag3KNqQ)