Minimal CI workflow - single test file only
This commit is contained in:
@@ -18,16 +18,10 @@ jobs:
|
|||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: pip install -e ".[dev]"
|
||||||
pip install -e ".[dev]"
|
|
||||||
pip install ruff mypy
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: pytest tests/unit/test_generators.py -v
|
||||||
echo "=== Installed packages ==="
|
|
||||||
pip list | grep -E "(mockapi|pytest|faker|click|connexion|openapi)"
|
|
||||||
echo "=== Running pytest ==="
|
|
||||||
pytest tests/unit/test_generators.py tests/unit/test_config.py tests/unit/test_validator.py tests/integration/test_cli.py tests/integration/test_server.py -v
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -40,16 +34,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
|
|
||||||
- name: Install build dependencies
|
|
||||||
run: |
|
|
||||||
pip install build
|
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: |
|
run: pip install build && python -m build
|
||||||
python -m build
|
|
||||||
|
|
||||||
- name: Upload artifacts
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: dist
|
|
||||||
path: dist/
|
|
||||||
Reference in New Issue
Block a user