Skip to content

Use importlib metadata instead of pkg resources #620

Use importlib metadata instead of pkg resources

Use importlib metadata instead of pkg resources #620

Workflow file for this run

name: Test
env:
# Enable colored output for pytest
# https://github.com/pytest-dev/pytest/issues/7443
# https://github.com/actions/runner/issues/241
PY_COLORS: 1
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- main
permissions:
contents: read
# Limit concurrency by workflow/branch combination
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
python-tests:
name: Test python-${{ matrix.python-version }}, ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
python-version:
- "3.12"
fail-fast: false
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
- name: Run tests
run: uv run --all-extras --python ${{ matrix.python-version }} -- pytest tests