We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 470170d commit 37f04ecCopy full SHA for 37f04ec
.github/workflows/labels.yml
@@ -15,4 +15,4 @@ jobs:
15
with:
16
python-version: '3.11'
17
- run: python -m pip install requests
18
- - run: python .github/workflows/labels.py
+ - run: python labels/labels.py
.github/workflows/labels.py renamed to labels/labels.py
@@ -2,7 +2,7 @@
2
3
import requests
4
5
-dir = Path('labels')
+dir = Path(__file__).parent
6
7
# Remove labels/*.txt.
8
for child in dir.iterdir():
@@ -25,7 +25,9 @@
25
# Write one file for every label.
26
for label, tests in labels.items():
27
tests.sort()
28
- with dir.joinpath(f'{label}.txt').open(mode='w') as f:
+ filename = f'{label}.txt'
29
+ print(f'Writing {len(tests)} tests to {filename}')
30
+ with dir.joinpath(filename).open(mode='w') as f:
31
for test in tests:
32
f.write(test)
33
f.write('\n')
0 commit comments