Skip to content

Use uv instead of pip in GHA publish workflow #50

Use uv instead of pip in GHA publish workflow

Use uv instead of pip in GHA publish workflow #50

Workflow file for this run

# This workflow will install Python dependencies and run tests 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: tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Check lockfile
run: uv lock --check
- name: Test with nose2
run: |
uv run coverage run -m nose2
uv run coverage lcov -o cover/coverage.lcov
- name: Coveralls
uses: coverallsapp/github-action@master
with:
path-to-lcov: cover/coverage.lcov
github-token: ${{ secrets.GITHUB_TOKEN }}