Skip to content

Commit 6024719

Browse files
committed
.github/workflows/python.yml (run-tests): Check that the package builds outside tox with both gcc and clang.
1 parent 409bd73 commit 6024719

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/python.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,15 @@ jobs:
4545
# ubuntu-latest+3.10 because it is already done when building the
4646
# wheels.
4747
python-version: ['3.11', '3.12']
48+
cc: [ gcc ]
4849
include:
4950
- os: macos-15-intel
5051
python-version: '3.10'
52+
cc: clang
53+
54+
env:
55+
CC: ${{ matrix.cc }}
56+
5157
steps:
5258
- uses: actions/checkout@v6
5359

@@ -60,8 +66,13 @@ jobs:
6066
- name: Install dependencies
6167
run: |
6268
python3 -m pip install --upgrade pip
69+
python3 -m pip install --upgrade build
6370
python3 -m pip install tox tox-gh-actions
6471
72+
- name: Check that the package builds outside tox
73+
run: python3 -m build
74+
working-directory: python
75+
6576
- name: Run tox
6677
run: tox
6778
working-directory: python
@@ -89,7 +100,7 @@ jobs:
89100
python3 -m pip install --upgrade pip
90101
python3 -m pip install --upgrade build
91102
92-
- name: Build the packages
103+
- name: Build the package
93104
run: python3 -m build
94105
working-directory: python
95106

0 commit comments

Comments
 (0)