Replace pdm with uv #143
Workflow file for this run
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: Run tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
version: "0.4.20" | |
enable-cache: true | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: "pyproject.toml" | |
- name: Check requirements | |
run: make check-deps | |
- name: Install requirements | |
run: make install | |
- name: Run linters | |
run: make lint | |
- name: Run tests | |
run: make test | |
- name: Cleanup | |
if: ${{ always() }} | |
run: | | |
make clean | |
docker system prune --force --volumes | |
uv cache prune --ci |