Add Gitea Actions workflow: ci.yml
Some checks failed
CI / test (push) Failing after 6s
CI / lint (push) Successful in 7s

This commit is contained in:
2026-03-22 11:18:08 +00:00
parent df27854f42
commit 7786f008ce

48
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,48 @@
name: CI
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'
- name: Install dependencies
run: |
pip install -e .
pip install pytest pytest-asyncio
- name: Run tests
run: |
pytest tests/ -v
- name: Verify package
run: |
python -c "from snip import cli; print('Import successful')"
snip --help
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install ruff
run: pip install ruff
- name: Run ruff
run: ruff check .