Skip to content

Getting Github Action to work #1

Getting Github Action to work

Getting Github Action to work #1

Workflow file for this run

name: Run Tests
on:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
# Checkout the code
- name: Checkout code
uses: actions/checkout@v3
# Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ["3.11", "3.12"]

Check failure on line 21 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Run Tests

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 21, Col: 27): A sequence was not expected
# Install UV
- name: Install UV
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
# Sync the environment with UV (will create and use .venv)
- name: Sync project environment with UV
run: |
uv sync
# Run the tests using UV
- name: Run tests
run: |
uv run pytest