Add ty as type checker #916
Workflow file for this run
This file contains hidden or 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: bugwarrior | |
| on: [push, pull_request] | |
| jobs: | |
| bugwarrior-test: | |
| runs-on: ubuntu-latest | |
| # We're currently seeing these complete in 1 minute. | |
| timeout-minutes: 5 | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", 3.11, 3.12, 3.13, 3.14] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Run tests | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -qq -y \ | |
| libffi-dev libssl-dev python3-venv taskwarrior | |
| task --version | |
| mkdir .venv | |
| python3 -m venv .venv | |
| source .venv/bin/activate | |
| pip install --upgrade pip setuptools | |
| pip install -e ".[all]" | |
| bugwarrior --version | |
| pytest | |
| bugwarrior-multiarch-test: | |
| runs-on: ubuntu-latest | |
| # We're currently seeing these complete in 10-30 minutes. | |
| timeout-minutes: 60 | |
| strategy: | |
| matrix: | |
| architecture: [ppc64le] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Run tests on given architecture | |
| uses: uraimo/run-on-arch-action@v3 | |
| with: | |
| arch: ${{ matrix.architecture }} | |
| distro: ubuntu_latest | |
| githubToken: ${{ github.token }} | |
| env: | | |
| # https://github.com/PyO3/setuptools-rust/issues/236 | |
| CARGO_NET_GIT_FETCH_WITH_CLI: "true" | |
| install: | | |
| apt-get update -qq | |
| apt-get install -qq -y \ | |
| cargo git libffi-dev libjpeg-dev libssl-dev python3-dev python3-venv taskwarrior zlib1g-dev | |
| task --version | |
| run: | | |
| apt-get install -qq -y pkg-config libssl-dev | |
| mkdir .venv | |
| python3 -m venv .venv | |
| source .venv/bin/activate | |
| pip install --upgrade pip setuptools | |
| pip install -e .[all] | |
| bugwarrior --version | |
| pytest | |
| bugwarrior-development-uv-test: | |
| runs-on: ubuntu-latest | |
| # We're currently seeing these complete in 1 minute. | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -qq -y \ | |
| libffi-dev libssl-dev taskwarrior | |
| task --version | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Install Editable Installation | |
| run: uv sync --all-extras --all-groups | |
| - name: Run tests | |
| run: | | |
| uv run bugwarrior --version | |
| uv run pytest | |
| bugwarrior-lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Install dependencies | |
| run: uv sync --group dev | |
| - name: Ruff check | |
| run: uv run ruff check | |
| - name: Ruff format | |
| run: uv run ruff format --check | |
| - name: Type check | |
| run: uv run ty check |