Add ty as type checker #918
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: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Run tests | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -qq -y taskwarrior | |
| task --version | |
| uv sync --all-extras --group test --python ${{ matrix.python-version }} | |
| uv run bugwarrior --version | |
| uv run pytest | |
| # Cannot migrate to uv: astral-sh/setup-uv does not support ppc64le, | |
| # and uraimo/run-on-arch-action runs inside a Docker container. | |
| 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>=25.1" setuptools | |
| pip install -e .[all] | |
| pip install --group test | |
| bugwarrior --version | |
| 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 --all-extras --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 |