Compare commits
7 Commits
4320570778
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 201d215ea0 | |||
| 7d6a5734c8 | |||
| 19953defdc | |||
| 14eed9ec87 | |||
| 7decabfb35 | |||
| 2266eb2b36 | |||
| 8d9edcba5e |
@@ -20,21 +20,14 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -e ".[dev]"
|
||||
python -m pip install ruff mypy types-requests
|
||||
|
||||
- name: Run linting
|
||||
run: python -m ruff check src/
|
||||
|
||||
- name: Run type checking
|
||||
run: python -m mypy src/schema2mock/ || true
|
||||
python -m pip install -e .
|
||||
python -m pip install pytest
|
||||
|
||||
- name: Run tests
|
||||
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
|
||||
run: python -m pytest tests/ -v
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -49,11 +42,10 @@ jobs:
|
||||
python -m pip install build
|
||||
|
||||
- name: Build package
|
||||
run: |
|
||||
python -m build
|
||||
run: python -m build
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: dist
|
||||
path: dist/
|
||||
path: dist/
|
||||
Reference in New Issue
Block a user