-
Notifications
You must be signed in to change notification settings - Fork 9
44 lines (44 loc) · 1.26 KB
/
ci.yaml
File metadata and controls
44 lines (44 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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@v6
- uses: actions/setup-go@v6
with:
go-version: stable
# We use this to install `buf`, and the `buf` version is controlled by the Makefile.
cache-dependency-path: Makefile
- uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- run: make install
- run: make lint
- run: make format
# When running with matrix.resolution == lowest-direct, we expect uv.lock to change, but we don't want that file checked in.
- if: matrix.resolution == 'highest'
run: make checkgenerate
env:
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}
- run: make test
- run: make conformance