Skip to content

⬆ Bump actions/checkout from 6.0.3 to 7.0.0 in the github-actions group #1211

⬆ Bump actions/checkout from 6.0.3 to 7.0.0 in the github-actions group

⬆ Bump actions/checkout from 6.0.3 to 7.0.0 in the github-actions group #1211

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@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.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