-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
c8f4c68
commit 4fce246
Showing
1 changed file
with
38 additions
and
0 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 |
---|---|---|
|
@@ -32,3 +32,41 @@ jobs: | |
- name: Run tests | ||
run: | | ||
xvfb-run -s '-screen 0 1024x768x24' pytest | ||
build_macos: | ||
runs-on: macos-14 | ||
strategy: | ||
matrix: | ||
python-version: ['3.10', '3.11', '3.12'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install system packages | ||
run: brew install pkg-config [email protected] libzip capnp cmake | ||
|
||
- name: Install python packages | ||
run: python3 -m pip install --upgrade pip pytest | ||
|
||
- name: Build project | ||
run: | | ||
export SDKROOT=$(xcrun --sdk macosx --show-sdk-path) | ||
python3 -m pip install -e . | ||
- name: Run tests | ||
run: | | ||
xvfb-run -s '-screen 0 1024x768x24' pytest | ||
# - name: Build wheel | ||
# run: python3 -m build --wheel --sdist | ||
|
||
# - name: Smoke Test | ||
# run: | | ||
# python3 -m pip uninstall stable-retro -y | ||
# python3 -m pip install --no-cache dist/*.whl | ||
# python3 -c 'import retro; env = retro.make("Airstriker-Genesis", render_mode="rgb_array"); env.reset(); print(env.step(env.action_space.sample())); env.close();' | ||
|