Validate pytest-mypy-plugins
input file schema
#178
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 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
pytest-version: ["~=6.2", "~=7.2"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install -U pip setuptools wheel | |
pip install -e . | |
# Force correct `pytest` version for different envs: | |
pip install -U "pytest${{ matrix.pytest-version }}" | |
- name: Run tests | |
run: pytest | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
pip install -U pip setuptools wheel | |
pip install -r requirements.txt | |
- name: Run linters | |
run: | | |
mypy . | |
black --check pytest_mypy_plugins setup.py | |
isort --check --diff . |