-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows-latest runner cache path doest not exists #52
Comments
Can you show your complete workflow? This message usually indicates that the cache got not populated. |
test:
name: Run tests under Python ${{ matrix.python }} on ${{ matrix.os }}
needs: check
runs-on: ${{ matrix.os }}
environment:
name: tests
strategy:
matrix:
python:
- "3.12"
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Pick environment to run
run: |
import os;
env = "TOXENV=py{}{}-test\n".format(*"${{ matrix.python }}".split("."))
with open(os.environ["GITHUB_ENV"], mode="a", encoding="utf-8") as file_handler:
file_handler.write(env)
shell: python
- name: Run the test suite
shell: bash
run: |
echo "REPORT_FILE=.tox/test_report.md" >> "$GITHUB_ENV"
uvx --quiet --no-progress --with tox-uv tox run
- name: Output reports to the job summary when tests fail
if: failure()
shell: bash
run: |
if [ -f "$REPORT_FILE" ]; then
echo "<details><summary>Failed Test Report</summary>" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
cat "$REPORT_FILE" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "</details>" >> $GITHUB_STEP_SUMMARY
fi
- name: Upload coverage data
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-data-${{ matrix.os }}-${{ matrix.python }}
path: .tox/.coverage.*
overwrite: true
include-hidden-files: true
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.os }}-${{ matrix.python }}
path: .tox/junit.*
overwrite: true
include-hidden-files: true It gets populated on the ubuntu and macos runner though, and there's no windows specific branching |
Can you run again with the branch changed to
|
I think the current default Changing to a OS dependant default by using |
Looks like it's working :) https://github.com/whiteprints/test-map-linux-py312-test-open-source/actions/runs/10740884185 It is a test repo, so it might disappear. |
I am also having similar issues on Windows runner. See https://github.com/iterative/dvc/actions/runs/10731598439/job/29762219494#step:12:2. Post job cleanup.
Pruning cache...
Error: The process 'C:\hostedtoolcache\windows\uv\0.4.6\x86_64\uv.exe' failed with exit code
EDIT: |
The default cache path is not working on windows runner:
workflow:
I'm using windows-latest runner
The text was updated successfully, but these errors were encountered: