Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteaac124

Browse files
authored
Merge branch 'master' into hatchling-version
2 parents57d1503 +05c5ce3 commiteaac124

File tree

809 files changed

+77754
-27340
lines changed

Some content is hidden

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

809 files changed

+77754
-27340
lines changed

‎.github/workflows/build-docs.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
id:cache
2323
with:
2424
path:${{ env.pythonLocation }}
25-
key:${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-v03
25+
key:${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-docs.txt') }}-v03
2626
-name:Install docs extras
2727
if:steps.cache.outputs.cache-hit != 'true'
28-
run:pip install.[doc]
28+
run:pip install-r requirements-docs.txt
2929
-name:Install Material for MkDocs Insiders
3030
if:( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false ) && steps.cache.outputs.cache-hit != 'true'
3131
run:pip install git+https://${{ secrets.ACTIONS_TOKEN }}@github.com/squidfunk/mkdocs-material-insiders.git
@@ -42,7 +42,7 @@ jobs:
4242
with:
4343
publish-dir:'./site'
4444
production-branch:master
45-
github-token:${{ secrets.GITHUB_TOKEN }}
45+
github-token:${{ secrets.FASTAPI_BUILD_DOCS_NETLIFY }}
4646
enable-commit-comment:false
4747
env:
4848
NETLIFY_AUTH_TOKEN:${{ secrets.NETLIFY_AUTH_TOKEN }}

‎.github/workflows/issue-manager.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
-uses:tiangolo/issue-manager@0.4.0
2222
with:
23-
token:${{ secrets.GITHUB_TOKEN }}
23+
token:${{ secrets.FASTAPI_ISSUE_MANAGER }}
2424
config:>
2525
{
2626
"answered": {

‎.github/workflows/label-approved.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ jobs:
1010
steps:
1111
-uses:docker://tiangolo/label-approved:0.0.2
1212
with:
13-
token:${{ secrets.GITHUB_TOKEN }}
13+
token:${{ secrets.FASTAPI_LABEL_APPROVED }}

‎.github/workflows/latest-changes.yml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@ jobs:
3030
if:${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
3131
with:
3232
limit-access-to-actor:true
33-
token:${{ secrets.ACTIONS_TOKEN }}
34-
standard_token:${{ secrets.GITHUB_TOKEN }}
3533
-uses:docker://tiangolo/latest-changes:0.0.3
3634
with:
37-
token:${{ secrets.GITHUB_TOKEN }}
35+
token:${{ secrets.FASTAPI_LATEST_CHANGES }}
3836
latest_changes_file:docs/en/docs/release-notes.md
3937
latest_changes_header:'## Latest Changes\n\n'
4038
debug_logs:true

‎.github/workflows/notify-translations.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
limit-access-to-actor:true
2020
-uses:./.github/actions/notify-translations
2121
with:
22-
token:${{ secrets.GITHUB_TOKEN }}
22+
token:${{ secrets.FASTAPI_NOTIFY_TRANSLATIONS }}

‎.github/workflows/people.yml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ jobs:
2424
if:${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
2525
with:
2626
limit-access-to-actor:true
27-
token:${{ secrets.ACTIONS_TOKEN }}
28-
standard_token:${{ secrets.GITHUB_TOKEN }}
2927
-uses:./.github/actions/people
3028
with:
3129
token:${{ secrets.ACTIONS_TOKEN }}
32-
standard_token:${{ secrets.GITHUB_TOKEN }}
30+
standard_token:${{ secrets.FASTAPI_PEOPLE }}

‎.github/workflows/preview-docs.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
rm -rf ./site
1717
mkdir ./site
1818
-name:Download Artifact Docs
19-
uses:dawidd6/action-download-artifact@v2.26.0
19+
uses:dawidd6/action-download-artifact@v2.27.0
2020
with:
21-
github_token:${{ secrets.GITHUB_TOKEN }}
21+
github_token:${{ secrets.FASTAPI_PREVIEW_DOCS_DOWNLOAD_ARTIFACTS }}
2222
workflow:build-docs.yml
2323
run_id:${{ github.event.workflow_run.id }}
2424
name:docs-zip
@@ -34,13 +34,13 @@ jobs:
3434
with:
3535
publish-dir:'./site'
3636
production-deploy:false
37-
github-token:${{ secrets.GITHUB_TOKEN }}
37+
github-token:${{ secrets.FASTAPI_PREVIEW_DOCS_NETLIFY }}
3838
enable-commit-comment:false
3939
env:
4040
NETLIFY_AUTH_TOKEN:${{ secrets.NETLIFY_AUTH_TOKEN }}
4141
NETLIFY_SITE_ID:${{ secrets.NETLIFY_SITE_ID }}
4242
-name:Comment Deploy
4343
uses:./.github/actions/comment-docs-preview-in-pr
4444
with:
45-
token:${{ secrets.GITHUB_TOKEN }}
45+
token:${{ secrets.FASTAPI_PREVIEW_DOCS_COMMENT_DEPLOY }}
4646
deploy_url:"${{ steps.netlify.outputs.deploy-url }}"

‎.github/workflows/publish.yml‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
uses:actions/setup-python@v4
1919
with:
2020
python-version:"3.7"
21-
cache:"pip"
21+
# Issue ref: https://github.com/actions/setup-python/issues/436
22+
# cache: "pip"
2223
cache-dependency-path:pyproject.toml
2324
-uses:actions/cache@v3
2425
id:cache
@@ -31,16 +32,10 @@ jobs:
3132
-name:Build distribution
3233
run:python -m build
3334
-name:Publish
34-
uses:pypa/gh-action-pypi-publish@v1.6.4
35+
uses:pypa/gh-action-pypi-publish@v1.8.5
3536
with:
3637
password:${{ secrets.PYPI_API_TOKEN }}
3738
-name:Dump GitHub context
3839
env:
3940
GITHUB_CONTEXT:${{ toJson(github) }}
4041
run:echo "$GITHUB_CONTEXT"
41-
# - name: Notify
42-
# env:
43-
# GITTER_TOKEN: ${{ secrets.GITTER_TOKEN }}
44-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
# TAG: ${{ github.event.release.name }}
46-
# run: bash scripts/notify.sh

‎.github/workflows/smokeshow.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ jobs:
2020

2121
-run:pip install smokeshow
2222

23-
-uses:dawidd6/action-download-artifact@v2.26.0
23+
-uses:dawidd6/action-download-artifact@v2.27.0
2424
with:
25+
github_token:${{ secrets.FASTAPI_SMOKESHOW_DOWNLOAD_ARTIFACTS }}
2526
workflow:test.yml
2627
commit:${{ github.event.workflow_run.head_sha }}
2728

@@ -30,6 +31,6 @@ jobs:
3031
SMOKESHOW_GITHUB_STATUS_DESCRIPTION:Coverage {coverage-percentage}
3132
SMOKESHOW_GITHUB_COVERAGE_THRESHOLD:100
3233
SMOKESHOW_GITHUB_CONTEXT:coverage
33-
SMOKESHOW_GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}
34+
SMOKESHOW_GITHUB_TOKEN:${{ secrets.FASTAPI_SMOKESHOW_UPLOAD }}
3435
SMOKESHOW_GITHUB_PR_HEAD_SHA:${{ github.event.workflow_run.head_sha }}
3536
SMOKESHOW_AUTH_KEY:${{ secrets.SMOKESHOW_AUTH_KEY }}

‎.github/workflows/test.yml‎

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,56 @@ on:
55
branches:
66
-master
77
pull_request:
8-
types:[opened, synchronize]
8+
types:
9+
-opened
10+
-synchronize
911

1012
jobs:
13+
lint:
14+
runs-on:ubuntu-latest
15+
steps:
16+
-uses:actions/checkout@v3
17+
-name:Set up Python
18+
uses:actions/setup-python@v4
19+
with:
20+
python-version:"3.11"
21+
# Issue ref: https://github.com/actions/setup-python/issues/436
22+
# cache: "pip"
23+
# cache-dependency-path: pyproject.toml
24+
-uses:actions/cache@v3
25+
id:cache
26+
with:
27+
path:${{ env.pythonLocation }}
28+
key:${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-tests.txt') }}-test-v03
29+
-name:Install Dependencies
30+
if:steps.cache.outputs.cache-hit != 'true'
31+
run:pip install -r requirements-tests.txt
32+
-name:Lint
33+
run:bash scripts/lint.sh
34+
1135
test:
1236
runs-on:ubuntu-latest
1337
strategy:
1438
matrix:
1539
python-version:["3.7", "3.8", "3.9", "3.10", "3.11"]
1640
fail-fast:false
17-
1841
steps:
1942
-uses:actions/checkout@v3
2043
-name:Set up Python
2144
uses:actions/setup-python@v4
2245
with:
2346
python-version:${{ matrix.python-version }}
24-
cache:"pip"
25-
cache-dependency-path:pyproject.toml
47+
# Issue ref: https://github.com/actions/setup-python/issues/436
48+
# cache: "pip"
49+
# cache-dependency-path: pyproject.toml
2650
-uses:actions/cache@v3
2751
id:cache
2852
with:
2953
path:${{ env.pythonLocation }}
30-
key:${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-test-v03
54+
key:${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-tests.txt') }}-test-v03
3155
-name:Install Dependencies
3256
if:steps.cache.outputs.cache-hit != 'true'
33-
run:pip install -e .[all,dev,doc,test]
34-
-name:Lint
35-
run:bash scripts/lint.sh
57+
run:pip install -r requirements-tests.txt
3658
-run:mkdir coverage
3759
-name:Test
3860
run:bash scripts/test.sh
@@ -44,32 +66,28 @@ jobs:
4466
with:
4567
name:coverage
4668
path:coverage
69+
4770
coverage-combine:
4871
needs:[test]
4972
runs-on:ubuntu-latest
50-
5173
steps:
5274
-uses:actions/checkout@v3
53-
5475
-uses:actions/setup-python@v4
5576
with:
5677
python-version:'3.8'
57-
cache:"pip"
58-
cache-dependency-path:pyproject.toml
59-
78+
# Issue ref: https://github.com/actions/setup-python/issues/436
79+
#cache: "pip"
80+
# cache-dependency-path: pyproject.toml
6081
-name:Get coverage files
6182
uses:actions/download-artifact@v3
6283
with:
6384
name:coverage
6485
path:coverage
65-
6686
-run:pip install coverage[toml]
67-
6887
-run:ls -la coverage
6988
-run:coverage combine coverage
7089
-run:coverage report
7190
-run:coverage html --show-contexts --title "Coverage for ${{ github.sha }}"
72-
7391
-name:Store coverage HTML
7492
uses:actions/upload-artifact@v3
7593
with:
@@ -78,14 +96,10 @@ jobs:
7896

7997
# https://github.com/marketplace/actions/alls-green#why
8098
check:# This job does nothing and is only used for the branch protection
81-
8299
if:always()
83-
84100
needs:
85101
-coverage-combine
86-
87102
runs-on:ubuntu-latest
88-
89103
steps:
90104
-name:Decide whether the needed jobs succeeded or failed
91105
uses:re-actors/alls-green@release/v1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp