Skip to content

[#187] Github Action now uses uv 2 #350

[#187] Github Action now uses uv 2

[#187] Github Action now uses uv 2 #350

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Testing matrix
on:
push:
branches: [ devel ]
pull_request:
branches: [ devel ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
# git checkout
- uses: actions/checkout@v4
# Install uv
- name: Install uv
uses: astral-sh/setup-uv@v5

Check failure on line 30 in .github/workflows/python-testing-matrix.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/python-testing-matrix.yml

Invalid workflow file

You have an error in your yaml syntax on line 30
# setup python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version-file: ${{ matrix.python-version }}
# Install library
- name: Install the project
run: uv sync --all-extras --dev
# Run tests
- name: Run tests
# For example, using `pytest`
run: uv run pytest tests