Files
openapi-mock-generator/.gitea/workflows/ci.yml
7000pctAUTO 5de03b3bd5
Some checks failed
CI / test (push) Failing after 16s
CI / build (push) Has been skipped
Add Gitea Actions workflow: ci.yml
2026-02-02 20:23:48 +00:00

56 lines
1.0 KiB
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: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests
run: pytest tests/ -v
- name: Run linter
run: ruff check src/ tests/
- name: Run type check
run: mypy src/
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install build dependencies
run: pip install build
- name: Build package
run: python -m build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/