Files
mockapi/.gitea/workflows/ci.yml
7000pctAUTO 7a51dce2b9
Some checks failed
CI / test (push) Failing after 13s
Add Gitea Actions workflow: ci.yml
2026-03-22 22:13:46 +00:00

39 lines
1013 B
YAML

name: CI
on:
push:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Show directory
run: |
pwd
ls -la
- name: Show tests directory
run: |
ls -la tests/
ls -la tests/unit/
ls -la tests/integration/
- name: Show examples directory
run: |
ls -la examples/
- name: Install package
run: |
pip install -e ".[dev]" 2>&1 | head -50
- name: Verify installation
run: |
python -c "import mockapi; print('mockapi imported successfully')"
python -c "from mockapi.core.generators import DataGenerator; print('DataGenerator imported successfully')"
- name: Run tests with detailed output
run: |
python -m pytest tests/ -v --tb=long 2>&1