From 889efa5e6fc8c1ad793c2253d35a66396cd61915 Mon Sep 17 00:00:00 2001 From: Fstei Date: Wed, 25 Sep 2024 13:45:44 +0200 Subject: [PATCH] Fix(ci): Fix Ci Publish Workflow --- .github/workflows/python-publish.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 83434e6c..0aac6484 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -37,7 +37,11 @@ jobs: build-n-publish: name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + python-version: [ "3.12" ] + os: [ ubuntu-latest ] # Specifying a GitHub environment, # Specifying a GitHub environment, which is strongly recommended by PyPI: https://docs.pypi.org/trusted-publishers/adding-a-publisher/ # you have to create an environment in your repository settings and add the environment name here environment: release @@ -47,14 +51,14 @@ jobs: needs: test steps: - uses: actions/checkout@v4 - - name: Set up Python + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r dev_requirements/requirements-test_packaging.txt + pip install .[test_packaging] - name: Build wheel and source distributions run: | python -m build