In a GitHub action I use uv sync to install the dependencies of a Python project:
steps:
- name: checkout source code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: yezz123/setup-uv@v4
with:
uv-venv: ".venv"
- name: Install dependencies
run: uv sync
- name: Ruff check
run: uv run ruff check src tests
However, this gives me the following error:
If I run uv sync
on my laptop, it works fine and it installs ruff
and other development dependencies. Why does it not work in the GitHub action?
3