ci: Add GitHub Actions workflow for running tests

This commit is contained in:
Andreas Koepf (aider) 2025-01-31 00:10:12 +01:00
parent 3e01b7dccf
commit 0f362920d5
2 changed files with 42 additions and 0 deletions

30
.github/workflows/tests.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Tests
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[test]"
- name: Run tests
run: |
pytest