Skip to content

Commit

Permalink
Allow extras to be installed for typechecking
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Apr 25, 2022
1 parent 9588c2b commit 72c0a02
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/python-poetry-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
name: Linting
on:
workflow_call:
inputs:
extras:
description: >
Space-separated list of extras to install when type checking.
Defaults to no extras.
# In the future I'd like to change setup-python-poetry to install all extras
# by default, using e.g. an implementation of
# https://github.com/python-poetry/poetry/issues/3413
type: string
required: false
default: ""


jobs:
Expand Down Expand Up @@ -33,6 +44,9 @@ jobs:

- name: Setup Poetry
uses: matrix-org/setup-python-poetry@v1
with:
# We want to make use of type hints in optional dependencies too.
extras: "${{ inputs.extras }}"

- name: Restore/persist mypy's cache
uses: AustinScola/mypy-cache-github-action@v1
Expand Down

0 comments on commit 72c0a02

Please sign in to comment.