-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (33 loc) · 1.04 KB
/
check-update-types.yml
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
name: Test - Python
on:
workflow_dispatch:
push:
branches: ["main", "rc-*"]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
release:
types: [published]
env:
UV_VERSION: "0.4.x"
PYTHON_VERSION: 3.13
jobs:
check-types-updated:
name: Check provider types
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 🚀 Install uv
uses: astral-sh/setup-uv@v3
- name: 🐍 Set up Python ${{ env.PYTHON_VERSION }}
run: uv python install ${{ env.PYTHON_VERSION }}
- name: 📦 Install the project
run: uv sync --python ${{ env.PYTHON_VERSION }} --all-extras
- name: Run type update
run: make update-types
# Fail if there are changes under chatlas/types and throw a useful error message
- name: Check for changes
run: |
if [[ -n $(git diff chatlas/types) ]]; then
echo "::error::Types are out of date. Please run 'make update-types' and commit the changes."
exit 1
fi