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 }}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "oidc-fastapi-test"
|
||||
version = "0.1.2"
|
||||
version = "0.1.5"
|
||||
description = "Add your description here"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.13"
|
||||
|
@ -20,10 +20,7 @@ dependencies = [
|
|||
oidc-test = "oidc_test.main:main"
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"ipdb>=0.13.13",
|
||||
"pytest>=8.3.4",
|
||||
]
|
||||
dev = ["ipdb>=0.13.13", "pytest>=8.3.4"]
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue