Skip to content

✨ Add plugin system via fastapi_cli.plugins entry point group #1272

✨ Add plugin system via fastapi_cli.plugins entry point group

✨ Add plugin system via fastapi_cli.plugins entry point group #1272

name: Test Redistribute
on:
push:
branches:
- main
pull_request:
permissions: {}
jobs:
test-redistribute:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version-file: ".python-version"
# Issue ref: https://github.com/actions/setup-python/issues/436
# cache: "pip"
# cache-dependency-path: pyproject.toml
- name: Install build dependencies
run: pip install build
- name: Build source distribution
run: python -m build --sdist
- name: Decompress source distribution
run: |
cd dist
tar xvf fastapi_cli*.tar.gz
- name: Install test dependencies
run: |
cd dist/fastapi_cli*/
pip install --group tests --editable .[standard]
- name: Run source distribution tests
run: |
cd dist/fastapi_cli*/
bash scripts/test.sh
- name: Build wheel distribution
run: |
cd dist
pip wheel --no-deps fastapi_cli*.tar.gz