Skip to content

Commit

Permalink
fix: make directory names work on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Oct 29, 2024
1 parent b6f8699 commit ec16d07
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@ jobs:
shell: bash
run: |
for python_version in $(echo '${{ inputs.unit-python-versions }}' | jq -r .[] | tr '\n' ' '); do
make setup-tests UV_PROJECT_ENVIRONMENT="${{ runner.temp }}/venv_${python_version}"
python_dirname=$(echo ${{ runner.temp }} | tr \\ /)/venv_$(echo $python_version | tr . _)
make setup-tests UV_PROJECT_ENVIRONMENT="${python_dirname}"
done
- name: Run tests
shell: bash
run: |
for python_version in $(echo '${{ inputs.unit-python-versions }}' | jq -r .[] | tr '\n' ' '); do
echo "::group::Python ${python_version}"
make coverage UV_PROJECT_ENVIRONMENT="${{ runner.temp }}/venv_${python_version}"
python_dirname=$(echo ${{ runner.temp }} | tr \\ /)/venv_$(echo $python_version | tr . _)
make coverage UV_PROJECT_ENVIRONMENT="${python_dirname}"
echo "::endgroup::"
done
- name: Upload coverage
Expand Down

0 comments on commit ec16d07

Please sign in to comment.