Skip to content

Commit 6cc24ca

Browse files
Source dayamlchecker venv each step
1 parent 6adcc34 commit 6cc24ca

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

da_build/action.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ runs:
3030
shell: bash
3131

3232
- name: Install dependencies
33-
run: |
34-
uv tool install "dayamlchecker>=1.2.0"
35-
source $(uv tool dir)/dayamlchecker/bin/activate # necessary because dayamlchecker.check_questions_urls isn't a binary.
33+
run: uv tool install "dayamlchecker>=1.2.0"
3634
shell: bash
3735

3836
- name: Check syntax for all files
@@ -44,11 +42,16 @@ runs:
4442
shell: bash
4543

4644
- name: Run YAML Checker
47-
run: find . -name "*.yml" -path "*/questions/*" -print0 | xargs -0 python -m dayamlchecker
45+
run: |
46+
# necessary because dayamlchecker.check_questions_urls isn't a binary.
47+
source $(uv tool dir)/dayamlchecker/bin/activate
48+
find . -name "*.yml" -path "*/questions/*" -print0 | xargs -0 python -m dayamlchecker
4849
shell: bash
4950

5051
- name: Check URLs in question/template files
5152
run: |
53+
# necessary because dayamlchecker.check_questions_urls isn't a binary.
54+
source $(uv tool dir)/dayamlchecker/bin/activate
5255
if [ "${{ inputs.skip-url-check }}" = "true" ]; then
5356
echo "Skipping URL checks"
5457
exit 0

0 commit comments

Comments
 (0)