Skip to content

add mypy check and mypy fixes #9

add mypy check and mypy fixes

add mypy check and mypy fixes #9

Workflow file for this run

name: Test tap-productboard
on: [push]
jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "0.5.9"
- name: Install dependencies
run: |
uv sync
- name: Check black
run: |
uv run black --check --diff tap_productboard/
- name: Check pylint
run: |
uv run pylint tap_productboard/
- name: Check mypy
run: |
uv run mypy tap_productboard/ --explicit-package-bases
pytest:
runs-on: ubuntu-latest
env:
TAP_PRODUCTBOARD_API_KEY: ${{secrets.TAP_PRODUCTBOARD_API_KEY}}
TAP_PRODUCTBOARD_START_DATE: ${{secrets.TAP_PRODUCTBOARD_START_DATE}}
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "0.5.9"
- name: Install dependencies
run: |
uv sync
- name: Test with pytest
run: |
uv run pytest --capture=no