diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0f08497..8c62c02 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,6 +32,7 @@ jobs: env: OS: ${{ matrix.os }} PYTHON: ${{ matrix.python-version }} + UV_SYSTEM_PYTHON: true services: cratedb: @@ -44,21 +45,23 @@ jobs: - name: Acquire sources uses: actions/checkout@v4 - - name: Install uv - uses: astral-sh/setup-uv@v5 - - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - architecture: x64 - cache: 'pip' - cache-dependency-path: | + + - name: Set up uv + uses: astral-sh/setup-uv@v5 + with: + cache-dependency-glob: | pyproject.toml requirements*.txt + cache-suffix: ${{ matrix.python-version }} + enable-cache: true + version: "latest" - name: Set up project requirements and tools - run: uv pip install --system --requirement=requirements.txt --requirement=requirements-dev.txt + run: uv pip install --requirement=requirements.txt --requirement=requirements-dev.txt - name: Run linters and software tests run: poe check-cpython @@ -86,14 +89,15 @@ jobs: matrix: os: ['ubuntu-latest'] micropython-version: [ - 'v1.20.0', - 'v1.24.0', + 'v1.22.2', + 'v1.24.1', 'v1.25.0-preview', ] env: OS: ${{ matrix.os }} MICROPYTHON: ${{ matrix.micropython-version }} + UV_SYSTEM_PYTHON: true services: cratedb: @@ -113,7 +117,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v5 - name: Set up project tools - run: uv pip install --system poethepoet + run: uv pip install poethepoet # https://github.com/marketplace/actions/install-micropython - name: Set up MicroPython ${{ matrix.micropython-version }}