Skip to content

Commit 749eee4

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 749eee4

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/python.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,16 @@ 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'
51-
steps:
52+
cc: clang
53+
54+
env:
55+
CC: ${{ matrix.cc }}
56+
57+
steps:
5258
- uses: actions/checkout@v6
5359

5460
- name: Set up Python ${{ matrix.python-version }}
@@ -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)