Declares an entrypoint script in poetry config #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Check | |
on: | |
pull_request: | |
jobs: | |
build-check: | |
runs-on: ubuntu-latest | |
name: Dependencies | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout | |
if: '!inputs.skip-checkout' | |
uses: actions/checkout@v3 | |
- name: Setup python | |
id: setup-python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install and configure Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: '1.4.0' | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- name: Install dependencies | |
run: poetry install | |
- name: Black | |
run: poetry run black --check . | |
- name: Ruff | |
run: poetry run ruff . | |
- name: Mypy | |
run: poetry run mypy . | |
- name: Pytest | |
run: poetry run pytest . | |