Bump mypy from 1.7.1 to 1.10.0 #643
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: Actions | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
concurrency: | |
group: '${{ github.workflow }}-${{ github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: π₯ Checkout the repository | |
uses: actions/checkout@v4.1.1 | |
- name: π Set up Python 3 | |
uses: actions/setup-python@v5.0.0 | |
id: python | |
with: | |
python-version: "3.11" | |
- name: π¦ Install dependencies | |
run: make requirements | |
- name: π€ Lint with Black | |
run: make black-check | |
- name: π€ Lint with isort | |
run: make isort-check | |
test: | |
name: Test with Python ${{ matrix.python.version }} | |
needs: lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: | |
- version: "3.8" | |
- version: "3.9" | |
- version: "3.10" | |
- version: "3.11" | |
- version: "3.12" | |
steps: | |
- name: π₯ Checkout the repository | |
uses: actions/checkout@v4.1.1 | |
with: | |
fetch-depth: 0 | |
- name: π οΈ Set up Python ${{ matrix.python.version }} | |
uses: actions/setup-python@v5.0.0 | |
with: | |
python-version: ${{ matrix.python.version }} | |
allow-prereleases: ${{ matrix.python.prereleases || false }} | |
- name: π¦ Install dependencies | |
run: make requirements | |
- name: π Run tests | |
run: make test | |
- name: π Build | |
run: make build | |
coverage: | |
name: Coverage | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: π₯ Checkout the repository | |
uses: actions/checkout@v4.1.1 | |
with: | |
fetch-depth: 0 | |
- name: π Set up Python 3.10 | |
uses: actions/setup-python@v5.0.0 | |
id: python | |
with: | |
python-version: "3.10" | |
- name: π¦ Install dependencies | |
run: make requirements | |
- name: π€ Upload coverage to Codecov | |
run: | | |
make coverage | |
curl -sfSL https://codecov.io/bash | bash - |