Skip to content

Commit c7460e5

Browse files
authored
CI: Limit pip extras check to Build tag (#49778)
* CI: Limit pip extras check to Build tag * add on tags
1 parent b6736b4 commit c7460e5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/package-checks.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ on:
99
branches:
1010
- main
1111
- 1.5.x
12+
types: [ labeled, opened, synchronize, reopened ]
1213

1314
permissions:
1415
contents: read
1516

1617
jobs:
1718
pip:
19+
if: ${{ github.event.label.name == 'Build' || contains(github.event.pull_request.labels.*.name, 'Build') || github.event_name == 'push'}}
1820
runs-on: ubuntu-latest
1921
strategy:
2022
matrix:
@@ -38,13 +40,6 @@ jobs:
3840
with:
3941
python-version: '3.8'
4042

41-
# Hacky patch to disable building cython extensions.
42-
# This job should only check that the extras successfully install.
43-
- name: Disable building ext_modules
44-
run: |
45-
sed -i '/ext_modules=/d' setup.py
46-
shell: bash -el {0}
47-
4843
- name: Install required dependencies
4944
run: |
5045
python -m pip install --upgrade pip setuptools wheel python-dateutil pytz numpy cython

0 commit comments

Comments
 (0)