add pytest to CI pipeline (#286)

This commit is contained in:
Jiri
2024-06-14 06:29:22 +08:00
committed by GitHub
parent 5bc80a043f
commit aa2925cde0
14 changed files with 172 additions and 18 deletions

22
.github/workflows/pytest.yaml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: pytest
on: [push, pull_request]
jobs:
pytest:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Run tests
run: |
pytest tagstudio/tests/