Skip to content

Commit d1b7a6c

Browse files
authored
Add build package to pip install (#1113)
* Add build package to pip install * Add build check to tests
1 parent 8684058 commit d1b7a6c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/publish-pypi.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Build dist files
2424
run: |
2525
python -m pip install --upgrade pip
26-
pip install -e .[test]
26+
pip install -e .[test] build
2727
python -m build
2828
git describe --tag --dirty --always
2929
- name: Publish distribution 📦 to Test PyPI

.github/workflows/run-tests.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,14 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
pip install -e .[test]
26+
pip install -e .[test] build
2727
2828
- name: Test with pytest
2929
if: always()
3030
run: |
3131
pytest test
32+
33+
- name: Test build
34+
if: always()
35+
run: |
36+
python -m build

0 commit comments

Comments
 (0)