-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ac229b
commit 6b57d42
Showing
7 changed files
with
46 additions
and
109 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 |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
- uses: pre-commit/[email protected] | ||
|
||
build-scratch: | ||
name: ${{ matrix.runs-on }} • py${{ matrix.python }} | ||
name: "${{ matrix.runs-on }} • py${{ matrix.python }}" | ||
needs: pre-commit | ||
defaults: | ||
run: | ||
|
@@ -40,54 +40,19 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
include: | ||
# To minimise the computational resources, we only use a single python version and the final test-wheels for all python versions | ||
# To minimise the computational resources, we only use a single python version and the final test-wheels for all python versions | ||
- runs-on: ubuntu-latest | ||
python: '3.8' | ||
python: '3.12' | ||
triplet: x64-linux-mixed | ||
# - runs-on: ubuntu-latest | ||
# python: '3.9' | ||
# triplet: x64-linux-mixed | ||
# - runs-on: ubuntu-latest | ||
# python: '3.10' | ||
# triplet: x64-linux-mixed | ||
# - 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-12 # macos latest is macos-14-arm64 running on M1 chips which doesn't have python support | ||
python: '3.8' | ||
- runs-on: macos-13 | ||
python: '3.12' | ||
triplet: x64-osx-mixed | ||
# - runs-on: macos-12 | ||
# python: '3.9' | ||
# triplet: x64-osx-mixed | ||
# - runs-on: macos-12 | ||
# python: '3.10' | ||
# triplet: x64-osx-mixed | ||
# - 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.8' | ||
python: '3.12' | ||
triplet: x64-windows | ||
# - runs-on: windows-latest | ||
# python: '3.9' | ||
# triplet: x64-windows | ||
# - runs-on: windows-latest | ||
# python: '3.10' | ||
# triplet: x64-windows | ||
# - 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 }} | ||
|
@@ -99,24 +64,11 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Install test dependencies | ||
- name: Install windows cmake | ||
# 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 cmake | ||
|
||
- 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@v11 | ||
with: | ||
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 | ||
|
@@ -128,21 +80,22 @@ jobs: | |
run: python -m pytest | ||
|
||
build-wheels: | ||
name: ${{ matrix.runs-on }} • ${{ matrix.arch }} | ||
name: "${{ matrix.runs-on }} • ${{ matrix.arch }}" | ||
needs: pre-commit | ||
defaults: | ||
run: | ||
shell: bash | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- runs-on: ubuntu-latest | ||
arch: x86_64 | ||
- runs-on: windows-latest | ||
arch: AMD64 | ||
- runs-on: macos-12 | ||
- runs-on: macos-13 | ||
arch: x86_64 | ||
- runs-on: macos-12 | ||
- runs-on: macos-13 | ||
arch: arm64 | ||
runs-on: ${{ matrix.runs-on }} | ||
|
||
|
@@ -155,7 +108,6 @@ jobs: | |
uses: docker/setup-buildx-action@v3 | ||
with: | ||
install: true | ||
|
||
- name: Build Docker image with vcpkg | ||
if: runner.os == 'linux' | ||
# using build-push-action (without push) to make use of cache arguments | ||
|
@@ -167,22 +119,6 @@ jobs: | |
push: false | ||
load: true | ||
|
||
- 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@v11 | ||
if: runner.os != 'linux' | ||
with: | ||
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 | ||
|
||
|
@@ -210,10 +146,6 @@ jobs: | |
# ale_py-0.x.x-cp310-cp310-macosx_11_0_arm64.whl | ||
# ale_py-0.x.x-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | ||
# ale_py-0.x.x-cp310-cp310-win_amd64.whl | ||
- runs-on: ubuntu-latest | ||
python: '3.8' | ||
wheel-name: 'cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64' | ||
arch: 'x86_64' | ||
- runs-on: ubuntu-latest | ||
python: '3.9' | ||
wheel-name: 'cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64' | ||
|
@@ -230,11 +162,11 @@ jobs: | |
python: '3.12' | ||
wheel-name: 'cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64' | ||
arch: 'x86_64' | ||
- runs-on: ubuntu-latest | ||
python: '3.13' | ||
wheel-name: 'cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64' | ||
arch: 'x86_64' | ||
|
||
- runs-on: windows-latest | ||
python: '3.8' | ||
wheel-name: 'cp38-cp38-win_amd64' | ||
arch: AMD64 | ||
- runs-on: windows-latest | ||
python: '3.9' | ||
wheel-name: 'cp39-cp39-win_amd64' | ||
|
@@ -251,32 +183,32 @@ jobs: | |
python: '3.12' | ||
wheel-name: 'cp312-cp312-win_amd64' | ||
arch: AMD64 | ||
- runs-on: windows-latest | ||
python: '3.13' | ||
wheel-name: 'cp313-cp313-win_amd64' | ||
arch: AMD64 | ||
|
||
- runs-on: macos-12 | ||
python: '3.8' | ||
wheel-name: 'cp38-cp38-macosx_10_15_x86_64' | ||
arch: x86_64 | ||
- runs-on: macos-12 | ||
- runs-on: macos-13 | ||
python: '3.9' | ||
wheel-name: 'cp39-cp39-macosx_10_15_x86_64' | ||
arch: x86_64 | ||
- runs-on: macos-12 | ||
- runs-on: macos-13 | ||
python: '3.10' | ||
wheel-name: 'cp310-cp310-macosx_10_15_x86_64' | ||
arch: x86_64 | ||
- runs-on: macos-12 | ||
- runs-on: macos-13 | ||
python: '3.11' | ||
wheel-name: 'cp311-cp311-macosx_10_15_x86_64' | ||
arch: x86_64 | ||
- runs-on: macos-12 | ||
- runs-on: macos-13 | ||
python: '3.12' | ||
wheel-name: 'cp312-cp312-macosx_10_15_x86_64' | ||
arch: x86_64 | ||
- runs-on: macos-13 | ||
python: '3.13' | ||
wheel-name: 'cp313-cp313-macosx_10_15_x86_64' | ||
arch: x86_64 | ||
|
||
- runs-on: macos-14 | ||
python: '3.8' | ||
wheel-name: 'cp38-cp38-macosx_11_0_arm64' | ||
arch: arm64 | ||
- runs-on: macos-14 | ||
python: '3.9' | ||
wheel-name: 'cp39-cp39-macosx_11_0_arm64' | ||
|
@@ -293,6 +225,10 @@ jobs: | |
python: '3.12' | ||
wheel-name: 'cp312-cp312-macosx_11_0_arm64' | ||
arch: arm64 | ||
- runs-on: macos-14 | ||
python: '3.13' | ||
wheel-name: 'cp313-cp313-macosx_11_0_arm64' | ||
arch: arm64 | ||
|
||
runs-on: ${{ matrix.runs-on }} | ||
|
||
|
@@ -313,7 +249,7 @@ jobs: | |
run: python -m pip install ale_py-0.10.1-${{ matrix.wheel-name }}.whl | ||
|
||
- name: Install Gymnasium and pytest | ||
run: python -m pip install gymnasium>=1.0.0a2 pytest | ||
run: python -m pip install gymnasium>=1.0.0 pytest | ||
|
||
- name: Test | ||
run: python -m pytest |
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 |
---|---|---|
|
@@ -68,7 +68,7 @@ jobs: | |
run: ./scripts/download_unpack_roms.sh | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected].3 | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_ARCHS: "${{ matrix.arch }}" | ||
|
||
|
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
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