Add stac-pydantic validation #397
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Runner | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| jobs: | |
| test: | |
| name: Execute tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@main | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[pydantic]" | |
| pip install pytest | |
| # Explicitly install stac-pydantic and verify it's installed | |
| pip install stac-pydantic>=3.3.0 | |
| python -c "import stac_pydantic; print('stac-pydantic installed successfully')" | |
| # Debug information | |
| echo "Installed packages:" | |
| pip list | |
| echo "Python path:" | |
| python -c "import sys; print(sys.path)" | |
| echo "stac_pydantic location:" | |
| python -c "import stac_pydantic; print(stac_pydantic.__file__)" | |
| - name: Run mypy | |
| run: | | |
| pip install . | |
| pip install -r requirements-dev.txt | |
| pytest --mypy stac_validator | |
| - name: Run pre-commit | |
| if: matrix.python-version == 3.10 | |
| run: | | |
| pre-commit install | |
| pre-commit autoupdate | |
| pre-commit run --all-files | |
| - name: Run tox | |
| run: | | |
| pip install tox | |
| tox -e py |