Skip to content

v2.0.2 - update Dockerfile to uv #41

v2.0.2 - update Dockerfile to uv

v2.0.2 - update Dockerfile to uv #41

Workflow file for this run

name: Python package
on: [ push ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.12", "3.13" ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
# Install a specific version or omit to install the latest version
version: "latest"
- name: Setup uv cache
uses: actions/cache@v3
with:
path: |
~/.cache/uv
key: ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('**/uv.lock') }}
restore-keys: |
${{ runner.os }}-uv-${{ matrix.python-version }}-
${{ runner.os }}-uv-
- name: Install dependencies
run: |
uv sync --group dev --group test --group extras
- name: Test with pytest
run: |
uv run pytest tests/
# env:
# GITHUB_API_TOKEN: ${{ secrets.API_TOKEN_GITHUB }}