Skip to content

Commit c487d58

Browse files
committed
merge with main
2 parents cf3b691 + 063278e commit c487d58

File tree

664 files changed

+137382
-25985
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

664 files changed

+137382
-25985
lines changed

.claude/settings.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(rg:*)",
5+
"Bash(make:*)",
6+
"Bash(uv run pytest:*)",
7+
"Bash(uv run:*)",
8+
"Bash(git push:*)",
9+
"Bash(git checkout:*)",
10+
"Bash(gh pr create:*)",
11+
"Bash(gh pr view:*)",
12+
"Bash(git add:*)",
13+
"Bash(git commit:*)",
14+
"Bash(gh pr comment:*)",
15+
"Bash(gh pr checks:*)",
16+
"Bash(gh run view:*)",
17+
"Bash(gh pr list:*)",
18+
"Bash(gh api:*)",
19+
"Bash(pre-commit run:*)",
20+
"Bash(grep:*)",
21+
"Bash(find:*)",
22+
"Bash(coverage:*)"
23+
],
24+
"deny": []
25+
}
26+
}

.github/ISSUE_TEMPLATE/config.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 💬 Join Slack
4+
url: 'https://logfire.pydantic.dev/docs/join-slack/'
5+
about: Join our Slack community to ask questions, get help, and chat about Pydantic AI

.github/workflows/after-ci.yml

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ jobs:
1616
steps:
1717
- uses: astral-sh/setup-uv@v5
1818
with:
19-
enable-cache: true
20-
python-version: '3.12'
19+
python-version: "3.12"
2120

2221
- uses: dawidd6/action-download-artifact@v6
2322
with:
2423
workflow: ci.yml
25-
name: '(diff-)?coverage-html.*'
24+
name: "(diff-)?coverage-html.*"
2625
name_is_regexp: true
2726
commit: ${{ github.event.workflow_run.head_sha }}
2827
allow_forks: true
@@ -39,23 +38,17 @@ jobs:
3938
SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
4039
SMOKESHOW_AUTH_KEY: ${{ secrets.SMOKESHOW_AUTH_KEY }}
4140

42-
- run: uvx smokeshow upload diff-coverage-html
43-
if: hashFiles('diff-coverage-html/*.html') != ''
44-
env:
45-
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Diff coverage {coverage-percentage}
46-
SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 95
47-
SMOKESHOW_GITHUB_CONTEXT: diff-coverage
48-
SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
50-
SMOKESHOW_AUTH_KEY: ${{ secrets.SMOKESHOW_AUTH_KEY }}
51-
5241
deploy-docs-preview:
5342
runs-on: ubuntu-latest
54-
if: github.event.workflow_run.event == 'pull_request'
43+
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.pull_requests[0] != null
5544
environment:
5645
name: deploy-docs-preview
5746

5847
steps:
48+
- run: echo "$GITHUB_EVENT_JSON"
49+
env:
50+
GITHUB_EVENT_JSON: ${{ toJSON(github.event) }}
51+
5952
- uses: actions/checkout@v4
6053

6154
- uses: actions/setup-node@v4
@@ -64,20 +57,24 @@ jobs:
6457

6558
- uses: astral-sh/setup-uv@v5
6659
with:
60+
python-version: "3.12"
6761
enable-cache: true
68-
python-version: '3.12'
62+
cache-suffix: deploy-docs-preview
6963

70-
- uses: dawidd6/action-download-artifact@v6
64+
- id: download-artifact
65+
uses: dawidd6/action-download-artifact@v6
7166
with:
7267
workflow: ci.yml
7368
name: site
7469
path: site
7570
commit: ${{ github.event.workflow_run.head_sha }}
7671
allow_forks: true
7772
workflow_conclusion: completed
73+
if_no_artifact_found: warn
7874

7975
- uses: cloudflare/wrangler-action@v3
8076
id: deploy
77+
if: steps.download-artifact.outputs.found_artifact == 'true'
8178
with:
8279
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
8380
environment: previews
@@ -87,12 +84,9 @@ jobs:
8784
--var GIT_COMMIT_SHA:${{ github.event.workflow_run.head_sha }}
8885
--var GIT_BRANCH:${{ github.event.workflow_run.head_branch }}
8986
90-
- run: echo "$GITHUB_EVENT_JSON"
91-
env:
92-
GITHUB_EVENT_JSON: ${{ toJSON(github.event) }}
93-
9487
- name: Set preview URL
9588
run: uv run --no-project --with httpx .github/set_docs_pr_preview_url.py
89+
if: steps.deploy.outcome == 'success'
9690
env:
9791
DEPLOY_OUTPUT: ${{ steps.deploy.outputs.command-output }}
9892
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)