Use UV instead of pip #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
# manually triggered | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
env: | |
UV_PYTHON: ${{ matrix.python-version }} | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@main | |
- name: Install the default version of uv | |
id: setup-uv | |
uses: astral-sh/setup-uv@v3 | |
- name: Print the installed version | |
run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}" | |
- name: Install Python ${{ matrix.python-version }} | |
run: uv python install ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: make env | |
- name: Lint with pylint | |
run: make pylint | |
- name: Test with pytest | |
run: make test | |
- name: Documentation | |
run: make doc |