Compare commits
2 Commits
8e058aeefc
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4320570778 | ||
|
|
8da4eb30e3 |
@@ -2,9 +2,9 @@ name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [ main, master ]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
branches: [ main, master ]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@@ -15,17 +15,22 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
python-version: '3.10'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install -e ".[dev]"
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -e ".[dev]"
|
||||
python -m pip install ruff mypy types-requests
|
||||
|
||||
- name: Run linting
|
||||
run: ruff check src/
|
||||
run: python -m ruff check src/
|
||||
|
||||
- name: Run type checking
|
||||
run: python -m mypy src/schema2mock/ || true
|
||||
|
||||
- name: Run tests
|
||||
run: pytest tests/ -v
|
||||
run: python -m pytest tests/unit/test_schema_parser.py tests/unit/test_generator.py tests/unit/test_composition.py tests/unit/test_config.py tests/unit/test_validator.py tests/integration/test_cli.py tests/integration/test_output.py tests/integration/test_server.py -v
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -36,13 +41,19 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
python-version: '3.10'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip install -e .
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install build
|
||||
|
||||
- name: Verify import
|
||||
run: python -c "import memory_manager; print(memory_manager.__version__)"
|
||||
- name: Build package
|
||||
run: |
|
||||
python -m build
|
||||
|
||||
- name: Verify CLI
|
||||
run: memory --version
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: dist
|
||||
path: dist/
|
||||
|
||||
Reference in New Issue
Block a user