Use uv in github actions (#243) #518
This file contains hidden or 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: Code quality | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: 🧹 Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project | |
id: checkout | |
uses: actions/checkout@v5 | |
- name: Set up Python 3.13 | |
id: setup-python | |
uses: actions/setup-python@v6 | |
with: | |
python-version: "3.13" | |
- name: Install uv | |
id: setup-uv | |
uses: astral-sh/setup-uv@v6 | |
with: | |
enable-cache: true | |
- name: Install tox | |
id: install-tox | |
run: | | |
uv pip install --system tox tox-uv | |
- name: Run code quality tests with tox | |
id: lint | |
run: tox | |
env: | |
TOXENV: ruff,mypy,docs |