Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/patch_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Patch Release
on:
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
name: "Bump minor version and create changelog with commitizen"
steps:
- name: Check out
uses: actions/checkout@v4
with:
fetch-depth: 0
token: "${{ secrets.GITHUB_TOKEN }}"
- id: cz
name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
changelog_increment_filename: body.md
increment: PATCH
- name: Release
uses: ncipollo/release-action@v1
with:
tag: v${{ env.REVISION }}
bodyFile: "body.md"
skipIfReleaseExists: true
- name: Print Version
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"
24 changes: 24 additions & 0 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,27 @@ jobs:
# run: make lint
- name: Tests
run: make test

- name: Build sdist and wheel
run: python -m build

- uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/

upload_pypi:
needs: [build_dist]
runs-on: ubuntu-latest
# Upload to PyPI on release
if: always() && github.event_name == 'release' && github.event.action == 'published'
environment: pypi
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
30 changes: 30 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release
on:
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
name: "Bump version and create changelog with commitizen"
steps:
- name: Check out
uses: actions/checkout@v4
with:
fetch-depth: 0
token: "${{ secrets.GITHUB_TOKEN }}"
- id: cz
name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
changelog_increment_filename: body.md
- name: Release
uses: ncipollo/release-action@v1
with:
tag: v${{ env.REVISION }}
bodyFile: "body.md"
skipIfReleaseExists: true
- name: Print Version
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ wandb
run_logs
.ipynb_checkpoints
.not*
dist
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"console": "integratedTerminal",
"args": ["-vv"],
"justMyCode": true,
"cwd": "${workspaceFolder}"
"cwd": "${workspaceFolder}/src"
},
{
"name": "Debug server with test policy",
"type": "debugpy",
"request": "launch",
"module": "agents",
"module": "vlagents",
"console": "integratedTerminal",
"args": ["start-server", "test", "--port=8080", "--host=localhost", "--kwargs={}"],
"justMyCode": true,
Expand Down
Loading