add test github actions worflow

This commit is contained in:
phernandez
2025-02-04 11:24:19 -06:00
parent 8b9377b593
commit c27a4bcdcd
+39
View File
@@ -0,0 +1,39 @@
name: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.12" ]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install uv
run: |
pip install uv
- name: Install dependencies
run: |
uv pip install -e .[dev]
- name: Run tests
run: |
uv pip install pytest pytest-cov
make test