delete root dir cruft #11
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: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
python_version: ['3.10', '3.11', '3.12'] | |
os: [ubuntu-latest, macOS-latest] # TODO: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "uv.lock" | |
- name: Setup venv and install pip dependencies | |
run: | | |
uv venv \ | |
&& uv sync \ | |
&& uv pip install pip \ | |
&& echo "/home/linuxbrew/.linuxbrew/bin" >> "$GITHUB_PATH" | |
- name: Run tests | |
run: | | |
source .venv/bin/activate \ | |
&& python tests.py |