-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull Gym env in favor of Gymnasium and include ROMs with PyPI (#516)
Co-authored-by: Jet <[email protected]>
- Loading branch information
1 parent
4c99c70
commit 9ac218a
Showing
35 changed files
with
766 additions
and
997 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,9 +22,11 @@ jobs: | |
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: pre-commit/[email protected] | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- uses: pre-commit/[email protected] | ||
|
||
tests: | ||
name: ${{ matrix.runs-on }} • py${{ matrix.python }} | ||
|
@@ -36,9 +38,6 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
include: | ||
- runs-on: ubuntu-latest | ||
python: '3.7' | ||
triplet: x64-linux-mixed | ||
- runs-on: ubuntu-latest | ||
python: '3.8' | ||
triplet: x64-linux-mixed | ||
|
@@ -51,26 +50,26 @@ jobs: | |
- runs-on: ubuntu-latest | ||
python: '3.11' | ||
triplet: x64-linux-mixed | ||
- runs-on: ubuntu-latest | ||
python: '3.12' | ||
triplet: x64-linux-mixed | ||
|
||
- runs-on: macos-latest | ||
python: '3.7' | ||
triplet: x64-osx-mixed | ||
- runs-on: macos-latest | ||
- runs-on: macos-12 # macos latest is macos-14-arm64 running on M1 chips which doesn't have python support | ||
python: '3.8' | ||
triplet: x64-osx-mixed | ||
- runs-on: macos-latest | ||
- runs-on: macos-12 | ||
python: '3.9' | ||
triplet: x64-osx-mixed | ||
- runs-on: macos-latest | ||
- runs-on: macos-12 | ||
python: '3.10' | ||
triplet: x64-osx-mixed | ||
- runs-on: macos-latest | ||
- runs-on: macos-12 | ||
python: '3.11' | ||
triplet: x64-osx-mixed | ||
- runs-on: macos-12 | ||
python: '3.12' | ||
triplet: x64-osx-mixed | ||
|
||
- runs-on: windows-latest | ||
python: '3.7' | ||
triplet: x64-windows | ||
- runs-on: windows-latest | ||
python: '3.8' | ||
triplet: x64-windows | ||
|
@@ -83,47 +82,44 @@ jobs: | |
- runs-on: windows-latest | ||
python: '3.11' | ||
triplet: x64-windows | ||
- runs-on: windows-latest | ||
python: '3.12' | ||
triplet: x64-windows | ||
env: | ||
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }} | ||
runs-on: ${{ matrix.runs-on }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v2 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Install test dependencies | ||
# TODO(jfarebro): There's a bug with Windows cmake and PEP517 builds via pip install. | ||
# As a temporary workaround installing cmake outside of the isolated env seems to work. | ||
run: | | ||
python -m pip install --user --upgrade -r tests/requirements.txt | ||
python -m pip install --user cmake | ||
run: python -m pip install --user cmake | ||
|
||
- uses: microsoft/setup-msbuild@v1.1 | ||
- uses: microsoft/setup-msbuild@v2 | ||
if: runner.os == 'Windows' | ||
# TODO(jfarebro): 02/16/2023 - There's a bug where pkg-config isn't installed on the macOS | ||
# runner. See: https://github.com/actions/runner-images/pull/7125 | ||
- name: Install pkg-config on macOS | ||
if: runner.os == 'macOS' | ||
run: brew install pkg-config | ||
- uses: lukka/run-vcpkg@v10 | ||
- uses: lukka/run-vcpkg@v11 | ||
with: | ||
vcpkgGitCommitId: "9aa0d66373ce3a6868d12353d0d4960db0d4bd18" | ||
vcpkgGitCommitId: "8150939b69720adc475461978e07c2d2bf5fb76e" | ||
# There's a permissions issue with the cache | ||
# https://github.com/microsoft/vcpkg/issues/20121 | ||
doNotCache: true | ||
|
||
- name: Download and unpack ROMs | ||
run: ./scripts/download_unpack_roms.sh | ||
|
||
- name: Build | ||
run: python -m pip install --user --verbose . | ||
run: python -m pip install --verbose .[test] | ||
|
||
- name: Test | ||
run: python -m pytest | ||
|
||
# Enable tmate debugging of manually-triggered workflows if the input option was provided | ||
- name: Setup SSH debug session on failure | ||
uses: mxschmitt/action-tmate@v3 | ||
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled && failure() }} | ||
with: | ||
limit-access-to-actor: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.