2024-12-08 16:26:38 +00:00
|
|
|
name: Run Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
name: Run Tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2024-12-08 16:35:55 +00:00
|
|
|
- name: Set up Python 3.9
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
2024-12-08 16:37:04 +00:00
|
|
|
python-version: '3.9.20'
|
2024-12-08 16:35:55 +00:00
|
|
|
|
2024-12-08 16:26:38 +00:00
|
|
|
- name: Install the latest version of uv
|
2024-12-08 16:35:06 +00:00
|
|
|
run: |
|
|
|
|
pip3 install uv
|
2024-12-08 16:26:38 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: uv sync
|
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: uv run pytest
|