Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
39 lines
868 B
YAML
39 lines
868 B
YAML
name: black
|
|
on:
|
|
push:
|
|
branches: main
|
|
paths:
|
|
- '**.py'
|
|
- .github/workflows/black.yml
|
|
- 'pyproject.toml'
|
|
pull_request:
|
|
paths:
|
|
- '**.py'
|
|
- .github/workflows/black.yml
|
|
- 'pyproject.toml'
|
|
jobs:
|
|
black:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
|
|
# Installation instructions are from: https://python-poetry.org/docs/
|
|
- name: Install dependencies
|
|
shell: bash
|
|
run: |
|
|
pip install \
|
|
poetry
|
|
|
|
- name: Build
|
|
shell: bash
|
|
run: |
|
|
poetry install
|
|
poetry build
|
|
|
|
- name: Run black
|
|
shell: bash
|
|
run: |
|
|
poetry run black --check --diff . generate/generate.py docs/conf.py kittycad/client_test.py kittycad/examples_test.py
|