Skip to content

Commit 7677a01

Browse files
committed
chore: test that the VCS check doesn't break things
Signed-off-by: Brian Harring <ferringb@gmail.com>
1 parent 795fb64 commit 7677a01

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@ jobs:
3535
- name: Checkout code
3636
uses: actions/checkout@v4
3737

38+
- name: Reject any VCS dependencies
39+
shell: python
40+
run: |
41+
import re, tomllib
42+
deps = tomllib.load(open('pyproject.toml', 'rb'))['build-system']['requires']
43+
if rejects := list(filter(re.compile(r'@[^+]+').search, deps)):
44+
rejects = " \n".join(sorted(rejects))
45+
raise Exception(f'VCS dependencies were detected in [build-system]:\n {rejects}')
46+
47+
48+
3849
- name: Pin dependencies to minimal versions
3950
if: ${{ matrix.deps == 'minimal-deps' }}
4051
run: sed -e '/dependencies/,$s/~=/==/' -i pyproject.toml

0 commit comments

Comments
 (0)