Skip to content

Migrate tasks from Makefile to poe (#475) #2244

Migrate tasks from Makefile to poe (#475)

Migrate tasks from Makefile to poe (#475) #2244

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
branches: [main]
schedule:
- cron: "15 22 * * *"
workflow_dispatch: {} # support manual runs
permissions:
contents: read
jobs:
ci:
name: CI
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
resolution: ["highest", "lowest-direct"]
env:
# Shared env variables for all the tests
UV_RESOLUTION: "${{ matrix.resolution }}"
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: stable
# We use this to install certain tools defined in poe tasks
cache-dependency-path: poe_tasks.toml
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
python-version: ${{ matrix.python-version }}
- run: uv sync
- run: uv run poe test
- run: uv run poe test-conformance
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: stable
# We use this to install certain tools defined in poe tasks
cache-dependency-path: poe_tasks.toml
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
python-version: ${{ matrix.python-version }}
- run: uv sync --locked
- run: uv run poe lint
- run: uv run poe format
- run: uv run poe generate
env:
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}
- run: uv run poe diffcheck