Skip to content

Commit 46b7435

Browse files
authored
Run pypi builds on PRs and install missing twine (#14)
Forgot to install twine on CI and the build wasn't running on pull requests by mistake.
1 parent db2d537 commit 46b7435

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/pypi.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@
66
#
77
name: pypi
88

9-
# Only run for pushes to the main branch and releases.
109
on:
10+
pull_request:
1111
push:
1212
branches:
1313
- main
1414
release:
1515
types:
1616
- published
1717

18-
# Use bash by default in all jobs
1918
defaults:
2019
run:
2120
shell: bash
@@ -48,7 +47,9 @@ jobs:
4847
python-version: "3.10"
4948

5049
- name: Install requirements
51-
run: python -m pip install -r env/requirements-build.txt
50+
run: |
51+
python -m pip install twine
52+
python -m pip install -r env/requirements-build.txt
5253
5354
- name: List installed packages
5455
run: python -m pip freeze

0 commit comments

Comments
 (0)