-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (46 loc) · 1.2 KB
/
client-python.yaml
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
45
46
47
48
49
50
name: "Client library: Python"
on:
push:
branches:
- main
pull_request:
paths:
- client/**
branches:
- main
defaults:
run:
working-directory: client
env:
UV_SYSTEM_PYTHON: 1
jobs:
lint:
runs-on: ubuntu-latest
env:
MYPY_CACHE_DIR: "${{ github.workspace }}/.cache/mypy"
RUFF_CACHE_DIR: "${{ github.workspace }}/.cache/ruff"
PRE_COMMIT_HOME: "${{ github.workspace }}/.cache/pre-commit"
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/python-lint
with:
pythonVersion: "3.11"
workingDirectory: client
test:
name: Test jobs-infra on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Set up oldest supported Python on ${{ matrix.os }}
uses: ./.github/actions/python-deps
with:
pythonVersion: "3.10"
workingDirectory: "client"
- name: Execute python tests
run: |
uv pip install . # need to install without --no-deps to work around non-portable dependency resolution in `uv pip compile`
pytest