Merge pull request #11 from xzhseh/xzhseh/add-ci-workflow

feat: add GitHub Actions CI for pytest
This commit is contained in:
4thfever
2026-01-07 19:08:00 +08:00
committed by GitHub

29
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest
- name: Run tests
run: pytest -v