From 21f1222085ca6f069c380b22708688bb982f55eb Mon Sep 17 00:00:00 2001 From: phil Date: Fri, 10 Jan 2025 23:48:44 +0100 Subject: [PATCH] Bump version --- .forgejo/workflows/build.yaml | 21 +++++++++++---------- pyproject.toml | 7 ++----- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index cae94d0..133d434 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -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 }} diff --git a/pyproject.toml b/pyproject.toml index 8fda2c2..a7f4676 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"]