-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from kaiyu-zheng/dev-latest
version 1.3.5
- Loading branch information
Showing
23 changed files
with
551 additions
and
134 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: pomdp-py build dev-latest wheel | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'vdev-latest' # trigger on the tag vdev-latest | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
steps: | ||
|
||
- name: Set release name with date | ||
id: set_release_name | ||
run: echo "RELEASE_NAME=pomdp-py (dev-latest $(date +'%Y-%m-%d'))" >> $GITHUB_ENV | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
ref: 'dev-latest' | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
- name: Run release script | ||
working-directory: . | ||
run: | | ||
cd scripts | ||
./pomdp_py_release.sh | ||
- name: Release artifact | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: ${{ env.RELEASE_NAME }} | ||
files: dist/*.whl |
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
pull_request: | ||
branches: | ||
- main | ||
|
||
- dev-latest | ||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
|
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: pomdp-py package pypi deployment | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
pypi-publish: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
environment: | ||
name: testpypi | ||
url: https://test.pypi.org/p/pomdp-py/ | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
|
||
steps: | ||
- name: Set Variables | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
run: | # Run the command within a multiline string | ||
echo "VERSION=\"Version ${{ github.ref_name }}\"" >> $GITHUB_ENV | ||
echo "TRIGGER_FOR_TEST_PYPI=${{ github.ref == 'refs/tags/vdev-latest' }}" >> $GITHUB_ENV | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
ref: 'dev-latest' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
- name: Run release script | ||
working-directory: . | ||
run: | | ||
cd scripts | ||
./pomdp_py_release.sh ${{ vars.RELEASE_ATTEMPT_COUNT }} | ||
- name: Upload to Test PyPi | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
if: ${{ env.TRIGGER_FOR_TEST_PYPI }} | ||
with: | ||
# This will upload stuff under dist/ to PyPI | ||
user: __token__ | ||
password: ${{ secrets.TEST_PYPI_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
skip-existing: true | ||
|
||
- name: Upload to PyPi | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
if: ${{ ! env.TRIGGER_FOR_TEST_PYPI }} | ||
with: | ||
# This will upload stuff under dist/ to PyPI | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
skip-existing: true | ||
|
||
- name: Release artifact | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: ${{ env.VERSION }} | ||
files: dist/*.whl |
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 |
---|---|---|
@@ -1,26 +1,27 @@ | ||
include ./pomdp_py/utils/cython_utils.pxd | ||
include ./pomdp_py/algorithms/po_uct.pxd | ||
include ./pomdp_py/algorithms/po_rollout.pxd | ||
include ./pomdp_py/algorithms/pomcp.pxd | ||
include ./pomdp_py/algorithms/value_iteration.pxd | ||
include ./pomdp_py/representations/belief/particles.pxd | ||
include ./pomdp_py/representations/distribution/particles.pxd | ||
include ./pomdp_py/representations/distribution/gaussian.pxd | ||
include ./pomdp_py/representations/distribution/histogram.pxd | ||
include ./pomdp_py/representations/distribution/gaussian.pxd | ||
include ./pomdp_py/representations/belief/particles.pxd | ||
include ./pomdp_py/utils/cython_utils.pxd | ||
include ./pomdp_py/framework/oopomdp.pxd | ||
include ./pomdp_py/framework/planner.pxd | ||
include ./pomdp_py/framework/basics.pxd | ||
include ./pomdp_py/framework/oopomdp.pxd | ||
include ./pomdp_py/utils/cython_utils.pyx | ||
include ./pomdp_py/algorithms/po_rollout.pxd | ||
include ./pomdp_py/algorithms/pomcp.pxd | ||
include ./pomdp_py/algorithms/po_uct.pxd | ||
include ./pomdp_py/algorithms/value_iteration.pxd | ||
include ./pomdp_py/problems/rocksample/cythonize/rocksample_problem.pyx | ||
include ./pomdp_py/problems/tiger/cythonize/tiger_problem.pyx | ||
include ./pomdp_py/algorithms/value_iteration.pyx | ||
include ./pomdp_py/algorithms/pomcp.pyx | ||
include ./pomdp_py/algorithms/po_rollout.pyx | ||
include ./pomdp_py/algorithms/po_uct.pyx | ||
include ./pomdp_py/representations/belief/particles.pyx | ||
include ./pomdp_py/representations/distribution/particles.pyx | ||
include ./pomdp_py/representations/distribution/histogram.pyx | ||
include ./pomdp_py/representations/distribution/gaussian.pyx | ||
include ./pomdp_py/framework/basics.pyx | ||
include ./pomdp_py/representations/distribution/particles.pyx | ||
include ./pomdp_py/representations/belief/particles.pyx | ||
include ./pomdp_py/utils/cython_utils.pyx | ||
include ./pomdp_py/framework/planner.pyx | ||
include ./pomdp_py/framework/basics.pyx | ||
include ./pomdp_py/framework/oopomdp.pyx | ||
include ./pomdp_py/algorithms/po_rollout.pyx | ||
include ./pomdp_py/algorithms/value_iteration.pyx | ||
include ./pomdp_py/algorithms/pomcp.pyx | ||
include ./pomdp_py/algorithms/po_uct.pyx | ||
include ./thirdparty/pomdp-solve/src/pomdp-solve |
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.