Allow to provide HTTP headers #338
Workflow file for this run
This file contains 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"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@main | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run unit tests | |
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 |