parent
b1553ec7bf
commit
21f1222085
2 changed files with 13 additions and 15 deletions
|
@ -9,7 +9,7 @@ on:
|
|||
type: boolean
|
||||
|
||||
jobs:
|
||||
test:
|
||||
build:
|
||||
runs-on: container
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
@ -27,14 +27,6 @@ jobs:
|
|||
- name: Run tests (API call)
|
||||
run: .venv/bin/pytest -s tests/basic.py
|
||||
|
||||
- name: Build wheel
|
||||
run: uv build --wheel
|
||||
|
||||
- name: Publish Python package (home)
|
||||
env:
|
||||
LOCAL_PYPI_TOKEN: ${{ secrets.LOCAL_PYPI_TOKEN }}
|
||||
run: uv publish --publish-url https://code.philo.ydns.eu/api/packages/philorg/pypi --token $LOCAL_PYPI_TOKEN
|
||||
|
||||
- name: Get version
|
||||
id: version
|
||||
run: echo "version=$(.venv/bin/oidc-test --version)" >> $GITHUB_OUTPUT
|
||||
|
@ -67,4 +59,13 @@ jobs:
|
|||
with:
|
||||
registry: "docker://${{ vars.REGISTRY }}/${{ vars.ORGANISATION }}"
|
||||
image: oidc-fastapi-test
|
||||
tags: latest ${{ steps.version.outputs.version }}
|
||||
|
||||
- name: Build wheel
|
||||
run: uv build --wheel
|
||||
|
||||
- name: Publish Python package (home)
|
||||
env:
|
||||
LOCAL_PYPI_TOKEN: ${{ secrets.LOCAL_PYPI_TOKEN }}
|
||||
run: uv publish --publish-url https://code.philo.ydns.eu/api/packages/philorg/pypi --token $LOCAL_PYPI_TOKEN
|
||||
|
||||
tags: latest ${{ steps.version.outputs.version }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue