Skip to content

Commit

Permalink
Merge branch 'master' into chinese-translation/async
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Nov 27, 2022
2 parents 09d3cb3 + c77384f commit bf78168
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Expand Up @@ -18,6 +18,8 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.7"
cache: "pip"
cache-dependency-path: pyproject.toml
- uses: actions/cache@v3
id: cache
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/smokeshow.yml
Expand Up @@ -17,6 +17,8 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: "pip"
cache-dependency-path: pyproject.toml

- run: pip install smokeshow

Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Expand Up @@ -19,13 +19,17 @@ jobs:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
id: setup-python
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: pyproject.toml
- uses: actions/cache@v3
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-test-v03
- name: Install Dependencies
if: steps.setup-python.outputs.cache-hit != 'true'
if: steps.cache.outputs.cache-hit != 'true'
run: pip install -e .[all,dev,doc,test]
- name: Lint
run: bash scripts/lint.sh
Expand All @@ -50,6 +54,8 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: "pip"
cache-dependency-path: pyproject.toml

- name: Get coverage files
uses: actions/download-artifact@v3
Expand Down
1 change: 1 addition & 0 deletions docs/en/docs/release-notes.md
Expand Up @@ -2,6 +2,7 @@

## Latest Changes

* 👷 Fix and tweak CI cache handling. PR [#5696](https://github.com/tiangolo/fastapi/pull/5696) by [@tiangolo](https://github.com/tiangolo).
* 👷 Update `setup-python` action in tests to use new caching feature. PR [#5680](https://github.com/tiangolo/fastapi/pull/5680) by [@madkinsz](https://github.com/madkinsz).
* ✏️ Fix typo in docs for `docs/en/docs/advanced/middleware.md`. PR [#5376](https://github.com/tiangolo/fastapi/pull/5376) by [@rifatrakib](https://github.com/rifatrakib).
* ⬆ Bump black from 22.8.0 to 22.10.0. PR [#5569](https://github.com/tiangolo/fastapi/pull/5569) by [@dependabot[bot]](https://github.com/apps/dependabot).
Expand Down

0 comments on commit bf78168

Please sign in to comment.