Files
mockapi/.gitea/workflows/ci.yml
7000pctAUTO 5f741f57a6
Some checks failed
CI / test (push) Failing after 14s
CI / build (push) Has been skipped
CI: Use Python 3.11 instead of 3.10
2026-03-22 21:37:16 +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.11'
- 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.11'
- name: Build package
run: pip install build && python -m build