Author SHA1 Message Date
dodox 0a883f36b9 Merge branch 'master' into publish_from_release 2024-02-10 09:33:27 +01:00
Dominik Roth d8940ac4ae Merge pull request #93 from D-o-d-o-x/fix_pyproject_missing_deps
Fix: The pyproject.toml was missing the new mushroom-rl dependency
2024-02-10 09:32:38 +01:00
dodox b387d4c448 Merge branch 'master' into fix_pyproject_missing_deps 2024-02-10 09:27:20 +01:00
dodox 6cb32e6203 Merge branch 'master' into fix_pyproject_missing_deps 2024-02-10 09:26:45 +01:00
Dominik Roth 3ccd839d16 Merge pull request #92 from D-o-d-o-x/fix_metaworld_rendering
Fix: Metaworld not supporting rendering
2024-02-10 09:24:50 +01:00
dodox f3a3c88978 Use checkout@v4 for ensure-release-tagged workflow 2024-01-18 11:05:46 +01:00
dodox 992ee014a3 Ensure all PRs to release to be tagged.
Will be enforced via branch protection.
2024-01-18 11:01:13 +01:00
dodox 3cac0a9258 Remove action to publish to Test-PyPI 2024-01-18 11:00:52 +01:00
dodox b05dcb84c4 Publish to PyPI from release instead of master.
Still require commits to be tagged.
2024-01-18 11:00:10 +01:00
dodox 1a2b932802 Fix: The pyproject.toml was missing the new mushroom-rl dependency 2023-12-13 17:29:38 +01:00
4 changed files with 38 additions and 63 deletions
@@ -0,0 +1,26 @@
name: Ensure Tagged Commits on Release
on:
pull_request:
branches:
- release
jobs:
check_tag:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check if base commit of PR is tagged
run: |
BASE_COMMIT=$(jq -r .pull_request.base.sha < "$GITHUB_EVENT_PATH")
TAG=$(git tag --contains $BASE_COMMIT)
if [ -z "$TAG" ]; then
echo "Base commit of PR is not tagged. PRs onto release must be tagged with the version number."
exit 1
fi
echo "Base commit of PR is tagged. Check passed."
+7 -9
View File
@@ -2,29 +2,27 @@ name: Publish Python package to PyPI
on:
push:
tags:
- '*'
branches:
- release
jobs:
publish:
name: Publish to PyPI
runs-on: ubuntu-latest
if: false && startsWith(github.ref, 'refs/tags/') # Only run on tagged commits
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0 # This fetches all history for all branches and tags
- name: Verify tag is on master branch
- name: Check if commit is tagged
run: |
TAG_IS_ON_MASTER=$(git branch -r --contains ${{ github.ref }} | grep 'origin/master')
if [ -z "$TAG_IS_ON_MASTER" ]; then
echo "Tag is not on the master branch. Cancelling the workflow."
TAG=$(git tag --contains HEAD)
if [ -z "$TAG" ]; then
echo "Commit is not tagged. Failing the workflow."
exit 1
fi
echo "Tag is on the master branch. Proceeding with the workflow."
echo "Commit is tagged. Proceeding with the workflow."
- name: Set up Python
uses: actions/setup-python@v4
@@ -1,52 +0,0 @@
name: Publish Python package to TestPyPI
on:
push:
tags:
- '*'
jobs:
publish:
name: Publish to TestPyPI
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') # Only run on tagged commits
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0 # This fetches all history for all branches and tags
- name: Verify tag is on master branch
run: |
TAG_IS_ON_MASTER=$(git branch -r --contains ${{ github.ref }} | grep 'origin/master')
if [ -z "$TAG_IS_ON_MASTER" ]; then
echo "Tag is not on the master branch. Cancelling the workflow."
exit 1
fi
echo "Tag is on the master branch. Proceeding with the workflow."
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build/setuptools/twine
run: >-
python3 -m
pip install
build setuptools twine
--user
- name: Prevent fallback onto setup.py
run: rm setup.py
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Publish to TestPyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
run: twine upload --repository-url https://test.pypi.org/legacy/ dist/*
+5 -2
View File
@@ -50,6 +50,7 @@ dmc = ["shimmy[dm-control]", "Shimmy==1.0.0"]
box2d = ["gymnasium[box2d]>=0.26.0"]
mujoco-legacy = ["mujoco-py>=2.1,<2.2", "cython<3"]
jax = ["jax>=0.4.0", "jaxlib>=0.4.0"]
mushroom-rl = ["mushroom-rl"]
all = [
# include all the optional dependencies
@@ -61,7 +62,8 @@ all = [
"mujoco-py>=2.1,<2.2",
"cython<3",
"jax>=0.4.0",
"jaxlib>=0.4.0"
"jaxlib>=0.4.0",
"mushroom-rl",
]
testing = [
@@ -75,5 +77,6 @@ testing = [
"mujoco-py>=2.1,<2.2",
"cython<3",
"jax>=0.4.0",
"jaxlib>=0.4.0"
"jaxlib>=0.4.0",
"mushroom-rl",
]