From 9437f2165b130e58330bd5c30a9807f11b5ac5db Mon Sep 17 00:00:00 2001 From: PONS Date: Thu, 13 Nov 2025 10:13:07 +0100 Subject: [PATCH] Added pypi cicd deployement files --- .github/workflows/deploy-pypi.yaml | 35 ++++++++++++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy-pypi.yaml diff --git a/.github/workflows/deploy-pypi.yaml b/.github/workflows/deploy-pypi.yaml new file mode 100644 index 00000000..7d8b112f --- /dev/null +++ b/.github/workflows/deploy-pypi.yaml @@ -0,0 +1,35 @@ +name: Publish Python Package + +on: + push: + tags: + - '[0-9]+.[0-9]+.[0-9]+' + workflow_dispatch: + +jobs: + deploy: + + runs-on: ubuntu-latest + + #environment: release + permissions: + id-token: write + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + cache: pip + cache-dependency-path: '**/pyproject.toml' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install hatch + - name: Build package + run: hatch build + - name: Test package + run: hatch run test + - name: Publish + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/pyproject.toml b/pyproject.toml index 4a779c55..eb2be55a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ exclude = [ packages = ["pyaml"] [project] -name = "pyaml" +name = "accelerator-middle-layer" description = "Python Accelerator Middle Layer" readme = "README.md" requires-python = ">=3.9"