Enhancements to pyproject #24
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: Checks | |
on: [pull_request] | |
jobs: | |
test: | |
name: test with ${{ matrix.env }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
env: | |
# Running tests on different python versions | |
# uncomment when upgrade grpcio-tools, current version does not work with 3.13 | |
# - "3.13" | |
- "3.12" | |
- "3.11" | |
- "3.10" | |
- "3.9" | |
# Running basic checks | |
- "lint" | |
- "format" | |
- "type" | |
os: | |
- ubuntu-latest | |
# - macos-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v4 | |
with: | |
# Install a specific version of uv. | |
version: "0.5.8" | |
enable-cache: true | |
- name: Install Python | |
run: uv python install --python-preference only-managed ${{ matrix.env }} | |
- name: Install dependencies | |
run: uv sync --all-groups | |
- name: Run test suite | |
run: uv run tox | |
env: | |
TOX_GH_MAJOR_MINOR: ${{ matrix.env }} |