Skip to content

Commit 163f017

Browse files
committed
Fix failing test.
1 parent 2a2a5c8 commit 163f017

File tree

3 files changed

+28
-10
lines changed

3 files changed

+28
-10
lines changed

.github/workflows/test.yaml

+23-7
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ on:
1010
- trunk
1111

1212
jobs:
13-
setup_uv_defaults:
13+
setup_uv_default:
1414
name: setup-uv [default]
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
18-
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
17+
- name: Checkout
18+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
19+
- name: Set up Python
20+
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
1921
with:
2022
python-version: "3.12"
2123
- name: Set up Python environment
@@ -26,8 +28,10 @@ jobs:
2628
name: setup-uv [version]
2729
runs-on: ubuntu-latest
2830
steps:
29-
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
30-
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
31+
- name: Checkout
32+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
33+
- name: Set up Python
34+
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
3135
with:
3236
python-version: "3.12"
3337
- name: Set up Python environment
@@ -40,8 +44,10 @@ jobs:
4044
name: setup-uv [lockfile]
4145
runs-on: ubuntu-latest
4246
steps:
43-
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
44-
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
47+
- name: Checkout
48+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
49+
- name: Set up Python
50+
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
4551
with:
4652
python-version: "3.12"
4753
- name: Set up Python environment
@@ -51,3 +57,13 @@ jobs:
5157
- run: uv --version
5258
- run: python -m build --version
5359

60+
tests_complete:
61+
name: All tests
62+
if: always()
63+
needs: [setup_uv_default, setup_uv_version, setup_uv_lockfile]
64+
runs-on: ubuntu-latest
65+
66+
steps:
67+
- run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
68+
- name: Done
69+
run: exit 0

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ and add both `requirements.in` and `requirements.txt` to the git repository.
1717
In your action workflow, create a Python environment and then call setup-uv:
1818
```yaml
1919
steps:
20-
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
21-
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
20+
- name: Checkout
21+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
22+
- name: Set up Python
23+
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
2224
with:
2325
python-version: "3.12"
2426
- name: Set up Python environment

setup-uv/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ runs:
2020

2121
- name: Install
2222
if: ${{ inputs.lockfile != '' }}
23-
run: "uv pip sync -r ${{ inputs.lockfile }} --only-binary :all: --system --reinstall"
23+
run: "uv pip sync ${{ inputs.lockfile }} --only-binary :all: --system --reinstall"
2424
shell: bash

0 commit comments

Comments
 (0)