uv 💜 #56
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: Build & Test | |
| on: [ push ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [ 3.8, 3.13 ] | |
| steps: | |
| - name: Checkout 🛒 | |
| uses: actions/checkout@v4 | |
| - name: Install uv 💜 | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Install ruff 🐶 | |
| uses: astral-sh/ruff-action@v3 | |
| - name: Set up Python ${{ matrix.python-version }} 🐍 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies 📦 | |
| run: | | |
| uv sync --all-groups --frozen | |
| - name: Lint with flake8 ❄️ | |
| run: | | |
| flake8 --config flake8.cfg src/ | |
| - name: Test with pytest ✅ | |
| run: | | |
| pytest tests |