Skip to content

Commit ea16637

Browse files
committed
CI: Test if we can build puppetboard
In our normal test pipeline, we didn't verify if we can properly build the package. because of that, the last 6.0.0 release failed: ``` Run python setup.py build sdist bdist_wheel Traceback (most recent call last): File "/home/runner/work/puppetboard/puppetboard/setup.py", line 3, in <module> from setuptools.command.test import test as TestCommand ModuleNotFoundError: No module named 'setuptools' ```
1 parent 2f21617 commit ea16637

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

.github/workflows/publish-to-pypi.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ jobs:
1717
with:
1818
python-version: 3.12
1919
- name: Install dependencies
20-
run: |
21-
pip install wheel
20+
run: pip install wheel
2221
- name: Build
23-
run: |
24-
python setup.py build sdist bdist_wheel
22+
run: python setup.py build sdist bdist_wheel
2523
- name: Publish distribution 📦 to PyPI
2624
uses: pypa/[email protected]
2725
with:

.github/workflows/tests.yml

+19-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
strategy:
15-
max-parallel: 5
1615
matrix:
1716
python-version: [3.9, '3.10', 3.11, 3.12, 3.13]
1817

@@ -37,6 +36,25 @@ jobs:
3736
with:
3837
token: ${{ secrets.CODECOV_TOKEN }}
3938
fail_ci_if_error: true
39+
- name: Build
40+
run: python setup.py build sdist bdist_wheel
41+
42+
# this uses the same commands as in our release pipeline and ensures that we can still build puppetboard
43+
test-build:
44+
runs-on: ubuntu-latest
45+
strategy:
46+
matrix:
47+
python-version: [3.9, '3.10', 3.11, 3.12, 3.13]
48+
steps:
49+
- uses: actions/checkout@v4
50+
- name: Set up Python ${{ matrix.python-version }
51+
uses: actions/setup-python@v5
52+
with:
53+
python-version: ${{ matrix.python-version }
54+
- name: Install dependencies
55+
run: pip install wheel
56+
- name: Build
57+
run: python setup.py build sdist bdist_wheel
4058

4159
build_docker_image:
4260
name: 'Test building a container'

0 commit comments

Comments
 (0)