Skip to content

Added mypy integration plugin (#9) #24

Added mypy integration plugin (#9)

Added mypy integration plugin (#9) #24

Workflow file for this run

name: Test
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
branches:
- main
paths:
- 'src/**'
- 'tests/**'
- '!**.pyi'
- 'tox.ini'
- 'pyproject.toml'
- '.github/workflows/test.yml'
push:
branches:
- main
tags-ignore:
- '*'
paths:
- 'src/**'
- 'tests/**'
- '!**.pyi'
- 'tox.ini'
- 'pyproject.toml'
- '.github/workflows/test.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
test:
if: github.event_name != 'pull_request' || github.event.pull_request.draft != true
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2022, macos-12]
python_version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Python ${{ matrix.python_version }}
id: setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- name: Setup tox
run: pip install tox>=4.0
- name: Launch tests
run: tox run -f py$(echo ${{ matrix.python_version }} | tr -d .)