Files
api-testgen-cli/.gitea/workflows/ci.yml
7000pctAUTO 54c5960d24
Some checks failed
CI / test (3.10) (push) Failing after 1m10s
CI / test (3.11) (push) Failing after 1m5s
CI / test (3.9) (push) Failing after 1m1s
CI / lint (push) Failing after 47s
Add Gitea Actions CI workflow for api-testgen-cli
2026-02-06 07:59:16 +00:00

63 lines
1.3 KiB
YAML

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Run unit tests
run: pytest tests/unit/ -v
- name: Run integration tests
run: pytest tests/integration/ -v
- name: Run tests with coverage
run: python -m pytest tests/ --cov=api_testgen
- name: Upload coverage report
uses: codecov/codecov-action@v4
with:
files: ./coverage.xml
fail_ci_if_error: false
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 linting tools
run: pip install ruff mypy
- name: Run ruff
run: ruff check .
- name: Run mypy
run: mypy api_testgen/ --ignore-missing-imports