File tree 6 files changed +63
-10
lines changed
6 files changed +63
-10
lines changed Original file line number Diff line number Diff line change
1
+ name : Python Checks
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - ' py/**'
7
+
8
+ jobs :
9
+ python-checks :
10
+ runs-on : ubuntu-latest
11
+ strategy :
12
+ matrix :
13
+ python-version :
14
+ - " 3.12"
15
+ - " 3.13"
16
+ defaults :
17
+ run :
18
+ working-directory : py
19
+
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+
23
+ - name : Pre-requisites
24
+ run : bin/setup -a ci
25
+
26
+ - name : Install uv and setup Python version
27
+ uses : astral-sh/setup-uv@v5
28
+ with :
29
+ enable-cache : true
30
+ python-version : ${{ matrix.python-version }}
31
+
32
+ - name : Format check
33
+ run : uv run ruff format --check .
34
+
35
+ - name : Lint with ruff
36
+ run : uv run ruff check .
37
+
38
+ - name : Run tests
39
+ run : uv run pytest .
40
+
41
+ - name : Build documentation
42
+ run : uv run mkdocs build --strict
43
+
44
+ - name : Build distributions
45
+ run : ./bin/build_dists
Original file line number Diff line number Diff line change 1
- go /
2
- public /
3
1
.github /
2
+ .mypy_cache /*
4
3
.prettierrc.yaml
5
- pnpm-lock.yaml
6
- docs /*
7
4
docs-go /*
5
+ docs /*
8
6
genkit-tools /genkit-schema.json
7
+ go /
8
+ pnpm-lock.yaml
9
+ public /
9
10
py /*
Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ function genkit::install_prerequisites() {
88
88
curl -LsSf https://astral.sh/uv/install.sh | sh
89
89
90
90
# Install pnpm for JavaScript package management.
91
- curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=10.0.0 sh -
91
+ # See: https://github.com/pnpm/pnpm/issues/6217
92
+ curl -fsSL https://get.pnpm.io/install.sh | env ENV=" $HOME /.bashrc" SHELL=" $( which bash) " PNPM_VERSION=10.0.0 bash -
92
93
}
93
94
94
95
function genkit::install_google_cloud_sdk() {
@@ -107,8 +108,8 @@ function genkit::install_google_cloud_sdk() {
107
108
function genkit::install_ci_packages() {
108
109
genkit::install_prerequisites
109
110
genkit::install_python_cli_tools
111
+ genkit::install_go_cli_tools
110
112
genkit::install_docs_cli_tools
111
- genkit::install_pnpm_cli_tools
112
113
}
113
114
114
115
# Install all the required tools for engineering.
@@ -143,7 +144,7 @@ function genkit::install_cargo_cli_tools() {
143
144
# Install NPM packages.
144
145
function genkit::install_pnpm_cli_tools() {
145
146
# Install the Genkit CLI. See: https://firebase.google.com/docs/genkit/devtools
146
- pnpm add -g genkit-cli
147
+ " $HOME /.local/share/ pnpm/pnpm " add -g genkit-cli
147
148
}
148
149
149
150
PYTHON_CLI_TOOLS=(
Original file line number Diff line number Diff line change 47
47
},
48
48
{
49
49
"run" : " py/bin/build_dists"
50
+ },
51
+ {
52
+ "run" : " go test go/..."
50
53
}
51
54
]
52
55
},
82
85
{
83
86
"run" : " py/bin/build_dists"
84
87
},
88
+ {
89
+ "run" : " go test go/..."
90
+ },
85
91
{
86
92
"run" : " py/.hooks/commit-message-format-pre-push"
87
93
}
Original file line number Diff line number Diff line change @@ -185,5 +185,5 @@ py/bin/setup
185
185
The following is the equivalent used for CI/CD systems.
186
186
187
187
``` bash
188
- py/bin/setup -e ci
188
+ py/bin/setup -a ci
189
189
```
Original file line number Diff line number Diff line change @@ -388,9 +388,9 @@ capabilities in code:
388
388
389
389
=== "Python"
390
390
391
- ``` python
391
+ ```python
392
392
393
- ```
393
+ ```
394
394
395
395
=== "JavaScript"
396
396
You can’t perform that action at this time.
0 commit comments