Skip to content

Commit 60df5a0

Browse files
committed
Move python version string to env, use dependency groups in pre-release.yml
1 parent cab9854 commit 60df5a0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/pre-release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: CD
22
on: [workflow_dispatch]
33

4+
env:
5+
PYTHON_VERSION: 3.9
6+
47
jobs:
58
test-pypi-deploy:
69
name: Deploy to Test PyPI
@@ -15,9 +18,9 @@ jobs:
1518
- name: Set up Python
1619
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c
1720
with:
18-
python-version: 3.9
21+
python-version: ${{ env.PYTHON_VERSION }}
1922
- name: Install dependencies
20-
run: pip install build
23+
run: pip install .[build]
2124
- name: Build package
2225
run: python -m build
2326
- name: Publish package to Test PyPI

0 commit comments

Comments
 (0)