add isort (#2) #12
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 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 isort | |
run: | | |
uv run isort --check tap_productboard/ | |
- name: Check mypy | |
run: | | |
uv run mypy tap_productboard/ --explicit-package-bases | |
- name: Check pylint | |
run: | | |
uv run pylint tap_productboard/ | |
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 |