Skip to content

Commit 81750f1

Browse files
author
Oleg
committed
Use bowtie action
1 parent 9217c0c commit 81750f1

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@v4
2525

26-
- name: Install uv
27-
uses: astral-sh/setup-uv@v5
28-
with:
29-
enable-cache: true
26+
- name: Install bowtie
27+
uses: bowtie-json-schema/bowtie@main
3028

3129
- name: Compute implementation name
3230
id: impl
@@ -35,7 +33,7 @@ jobs:
3533
- name: Compute latest implementation version
3634
id: version
3735
run: |
38-
version=$(uvx --from 'bowtie-json-schema' --python 3.13 bowtie info \
36+
version=$(bowtie info \
3937
--implementation ${{ steps.impl.outputs.name }} \
4038
--format json | jq -r '.version // empty')
4139
echo "value=${version}" >> $GITHUB_OUTPUT
@@ -57,6 +55,9 @@ jobs:
5755
steps:
5856
- uses: actions/checkout@v4
5957

58+
- name: Install bowtie
59+
uses: bowtie-json-schema/bowtie@main
60+
6061
- name: Install qemu
6162
run: |
6263
sudo apt-get update
@@ -87,13 +88,13 @@ jobs:
8788

8889
- name: Smoke Test
8990
run: |
90-
uvx --from 'bowtie-json-schema' --python 3.13 bowtie smoke -i "localhost/${{ steps.build_image.outputs.image-with-tag }}" --format json
91-
uvx --from 'bowtie-json-schema' --python 3.13 bowtie smoke -i "localhost/${{ steps.build_image.outputs.image-with-tag }}" --format markdown >> $GITHUB_STEP_SUMMARY
91+
bowtie smoke -i "localhost/${{ steps.build_image.outputs.image-with-tag }}" --format json
92+
bowtie smoke -i "localhost/${{ steps.build_image.outputs.image-with-tag }}" --format markdown >> $GITHUB_STEP_SUMMARY
9293
9394
- name: Collect current version
9495
id: current-version
9596
run: |
96-
version=$(uvx --from 'bowtie-json-schema' --python 3.13 bowtie info \
97+
version=$(bowtie info \
9798
--implementation "localhost/${{ steps.build_image.outputs.image-with-tag }}" \
9899
--format json | jq -r '.version // empty')
99100
echo "value=${version}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)