From eb9cd507dff6195573441a7ebc86ae216de80d6e Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Tue, 19 Sep 2023 12:59:25 +0200 Subject: [PATCH] extras foo Signed-off-by: Jan Kowalleck --- .github/workflows/python.yml | 13 ++++++++++--- docs/install.rst | 4 ++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 8612c1dd..fd9bd508 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -171,9 +171,16 @@ jobs: coverage-reports: ${{ env.REPORTS_DIR }}/coverage.* examples: - name: Examples + name: Examples E${{ matrix.install-extras }} runs-on: ubuntu-latest - timeout-minutes: 15 + timeout-minutes: 10 + strategy: + fail-fast: false + matrix: + install-extras: + - '' # none + - json-validation + - xml-validation steps: - name: Checkout # see https://github.com/actions/checkout @@ -194,7 +201,7 @@ jobs: with: poetry-version: ${{ env.POETRY_VERSION }} - name: Install package and prod dependencies - run: poetry install --only=main -vvv + run: poetry install --only=main --extras='${{ matrix.install-extras }}' -vvv - name: run all examples run: > find examples -type f -name '*.py' -print0 diff --git a/docs/install.rst b/docs/install.rst index 64ca60ef..e646dfdc 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -29,12 +29,12 @@ Install from `pypi.org`_ as you would any other Python module using your preferr Extras ------ -The following extras are available when installing the package: +The following extras are available when installing this package: `json-validation` Install the optional dependencies needed for JSON validation. `xml-validation` - Install the optional dependencies needed for JSON validation. + Install the optional dependencies needed for XML validation. `validation` Install the optional dependencies needed for the validations above.