Skip to content

Commit bcfe3f1

Browse files
authored
Merge pull request #10 from RobotControlStack/juelg/pypi
PyPI compatiliblity
2 parents 2e439f0 + 90fb852 commit bcfe3f1

17 files changed

Lines changed: 348 additions & 703 deletions
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Patch Release
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
release:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
10+
name: "Bump minor version and create changelog with commitizen"
11+
steps:
12+
- name: Check out
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
token: "${{ secrets.GITHUB_TOKEN }}"
17+
- id: cz
18+
name: Create bump and changelog
19+
uses: commitizen-tools/commitizen-action@master
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
changelog_increment_filename: body.md
23+
increment: PATCH
24+
- name: Release
25+
uses: ncipollo/release-action@v1
26+
with:
27+
tag: v${{ env.REVISION }}
28+
bodyFile: "body.md"
29+
skipIfReleaseExists: true
30+
- name: Print Version
31+
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"

.github/workflows/pipeline.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,27 @@ jobs:
2727
# run: make lint
2828
- name: Tests
2929
run: make test
30+
31+
- name: Build sdist and wheel
32+
run: python -m build
33+
34+
- uses: actions/upload-artifact@v4
35+
with:
36+
name: python-package-distributions
37+
path: dist/
38+
39+
upload_pypi:
40+
needs: [build_dist]
41+
runs-on: ubuntu-latest
42+
# Upload to PyPI on release
43+
if: always() && github.event_name == 'release' && github.event.action == 'published'
44+
environment: pypi
45+
permissions:
46+
id-token: write
47+
steps:
48+
- uses: actions/download-artifact@v4
49+
with:
50+
name: python-package-distributions
51+
path: dist
52+
53+
- uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/release.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
release:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
10+
name: "Bump version and create changelog with commitizen"
11+
steps:
12+
- name: Check out
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
token: "${{ secrets.GITHUB_TOKEN }}"
17+
- id: cz
18+
name: Create bump and changelog
19+
uses: commitizen-tools/commitizen-action@master
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
changelog_increment_filename: body.md
23+
- name: Release
24+
uses: ncipollo/release-action@v1
25+
with:
26+
tag: v${{ env.REVISION }}
27+
bodyFile: "body.md"
28+
skipIfReleaseExists: true
29+
- name: Print Version
30+
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ wandb
1212
run_logs
1313
.ipynb_checkpoints
1414
.not*
15+
dist

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"console": "integratedTerminal",
1313
"args": ["-vv"],
1414
"justMyCode": true,
15-
"cwd": "${workspaceFolder}"
15+
"cwd": "${workspaceFolder}/src"
1616
},
1717
{
1818
"name": "Debug server with test policy",
1919
"type": "debugpy",
2020
"request": "launch",
21-
"module": "agents",
21+
"module": "vlagents",
2222
"console": "integratedTerminal",
2323
"args": ["start-server", "test", "--port=8080", "--host=localhost", "--kwargs={}"],
2424
"justMyCode": true,

0 commit comments

Comments
 (0)