Update Makefile #47
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: Build 🏗️ and test running | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout your repo 📦 | |
uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
version: "0.4.24" # Pin to a specific uv version | |
enable-cache: true # Enable caching for uv | |
cache-dependency-glob: "uv.lock" | |
- name: Set up Python | |
run: uv python install # Installs Python version via uv | |
- name: Sync project dependencies | |
run: uv sync --no-dev && uv add pytest | |
- name: Run tests | |
run: export PYTHONPATH="$PYTHONPATH:$PWD" && uv run pytest # Use uv to run pytest on the tests directory |