Files
testdata-cli/.gitea/workflows/ci.yml

48 lines
1014 B
YAML

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')"
python -c "from snip.cli import cli; cli(['--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 .