Skip to content

Commit 889efa5

Browse files
committed
Fix(ci): Fix Ci Publish Workflow
1 parent 68f3295 commit 889efa5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/python-publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ jobs:
3737
3838
build-n-publish:
3939
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
40-
runs-on: ubuntu-latest
40+
runs-on: ${{ matrix.os }}
41+
strategy:
42+
matrix:
43+
python-version: [ "3.12" ]
44+
os: [ ubuntu-latest ]
4145
# Specifying a GitHub environment, # Specifying a GitHub environment, which is strongly recommended by PyPI: https://docs.pypi.org/trusted-publishers/adding-a-publisher/
4246
# you have to create an environment in your repository settings and add the environment name here
4347
environment: release
@@ -47,14 +51,14 @@ jobs:
4751
needs: test
4852
steps:
4953
- uses: actions/checkout@v4
50-
- name: Set up Python
54+
- name: Set up Python ${{ matrix.python-version }}
5155
uses: actions/setup-python@v5
5256
with:
5357
python-version: ${{ matrix.python-version }}
5458
- name: Install dependencies
5559
run: |
5660
python -m pip install --upgrade pip
57-
pip install -r dev_requirements/requirements-test_packaging.txt
61+
pip install .[test_packaging]
5862
- name: Build wheel and source distributions
5963
run: |
6064
python -m build

0 commit comments

Comments
 (0)