Skip to content

Commit b59ef96

Browse files
committed
hm
1 parent c940755 commit b59ef96

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
outputs:
1818
envs: ${{ steps.get-envs.outputs.envs }}
19-
pythons: ${{ steps.get-envs.outputs.pythons }}
19+
pythons: ${{ steps.get-pythons.outputs.pythons }}
2020
steps:
2121
- uses: actions/checkout@v4
2222
with:
@@ -31,9 +31,13 @@ jobs:
3131
FORCE_COLOR= uvx hatch env show --json |
3232
jq -c 'to_entries | map(select(.key | startswith("hatch-test")) | { name: .key, python: .value.python })'
3333
)
34-
PYTHONS_JSON=$(echo "$ENVS_JSON" | jq -c 'map(.python) | unique')
35-
3634
echo "envs=$ENVS_JSON" | tee $GITHUB_OUTPUT
35+
- name: Get python versions
36+
id: get-pythons
37+
env:
38+
ENVS_JSON: ${{ steps.get-envs.outputs.envs }}
39+
run: |
40+
PYTHONS_JSON=$(echo "$ENVS_JSON" | jq -c 'map(.python) | unique')
3741
echo "pythons=$PYTHONS_JSON" | tee $GITHUB_OUTPUT
3842
test:
3943
name: Tests

0 commit comments

Comments
 (0)