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