-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Split pytest and end-to-end tests into separate jobs - Add poetry check to ensure pyproject.toml and poetry.lock are in sync - Add ruff format --diff to ensure style formatting is applied (fails if ruff would reformat anything)
- Loading branch information
Showing
9 changed files
with
88 additions
and
21 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,8 @@ on: | |
- "poetry.lock" | ||
|
||
jobs: | ||
tests: | ||
pytest: | ||
name: Pytest | ||
runs-on: ubuntu-latest | ||
env: | ||
DATA_DIR: tests/data | ||
|
@@ -60,6 +61,39 @@ jobs: | |
-W ignore::UserWarning:gymnasium.utils.env_checker:247 \ | ||
&& rm -rf tests/outputs outputs | ||
end-to-end: | ||
name: End-to-end | ||
runs-on: ubuntu-latest | ||
env: | ||
DATA_DIR: tests/data | ||
MUJOCO_GL: egl | ||
steps: | ||
- name: Add SSH key for installing envs | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Install EGL | ||
run: sudo apt-get update && sudo apt-get install -y libegl1-mesa-dev | ||
|
||
- name: Install poetry | ||
run: | | ||
pipx install poetry && poetry config virtualenvs.in-project true | ||
echo "${{ github.workspace }}/.venv/bin" >> $GITHUB_PATH | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
cache: "poetry" | ||
|
||
- name: Install poetry dependencies | ||
run: | | ||
poetry install --all-extras | ||
- name: Test end-to-end | ||
run: | | ||
make test-end-to-end \ | ||
|
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