Files
mockapi/.gitea/workflows/ci.yml
7000pctAUTO a16d436336
Some checks failed
CI / test (push) Failing after 13s
CI / build (push) Has been skipped
CI: install without dev dependencies first
2026-03-22 21:36:10 +00:00

40 lines
776 B
YAML

name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install -e .
pip install pytest
- name: Run tests
run: pytest tests/unit/test_generators.py -v
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.10'
- name: Build package
run: pip install build && python -m build