[CI/CD] Setup complete workflow

This commit is contained in:
OleehyO
2025-04-23 03:00:04 +00:00
parent 7490fa9c5a
commit 59bc9bdd41
5 changed files with 171 additions and 0 deletions

35
.github/workflows/test.yaml vendored Normal file
View File

@@ -0,0 +1,35 @@
name: Run Tests with Pytest
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
uv sync --group test
- name: Run tests with pytest
run: |
uv run pytest tests/