Skip to content

Commit

Permalink
workflow for publishing pypi package from release
Browse files Browse the repository at this point in the history
  • Loading branch information
wredsen committed Jul 18, 2024
1 parent d8c2fc3 commit 98c55f0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Upload Python Package to PyPI when a Release is Created

on:
release:
types: [created]

jobs:
pypi-publish:
name: Publish release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/fmugym
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Configure Poetry
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN_FMUGYM }}
- name: Build and publish to PyPI

run: |
poetry build -vvv
poetry publish -vvv
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ Proceed with training the agent and save the resulting policy.
### 6 Evaluate performance of policy with inference
Running one inference episode with the trained agent while capturing trajectories. To statistically assess the trained agent's performance, the
optimized policy can be deployed for multiple randomized episodes to evaluate the results.

<img src="img/diagram_inference.png" alt="DiagramInference" />

## License
Expand Down

0 comments on commit 98c55f0

Please sign in to comment.