Skip to content

Commit

Permalink
Add support for non-package poetry projects
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Apr 18, 2024
1 parent c2b75d3 commit b7f7de8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ jobs:
name: Update dependency graph
needs:
- project-metadata
if: fromJSON(needs.project-metadata.outputs.is_poetry_project) && needs.project-metadata.outputs.package_name
if: fromJSON(needs.project-metadata.outputs.is_poetry_project)
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.2
Expand All @@ -235,14 +235,17 @@ jobs:
# to virtualenv. See: https://github.com/tox-dev/pipdeptree/issues/130#issuecomment-2029280908
- name: Run pipdeptree for debug
run: >
pipdeptree --python ./.venv/bin/python --packages ${{ needs.project-metadata.outputs.package_name }}
pipdeptree --python ./.venv/bin/python
${{ needs.project-metadata.outputs.package_name && format('--packages {0}', needs.project-metadata.outputs.package_name)}}

Check failure on line 239 in .github/workflows/docs.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

239:121 [line-length] line too long (132 > 120 characters)
- name: Create dir structure
run: |
mkdir -p "$(dirname "${{ inputs.dependency-graph-output }}")"
# TODO: generate a graph for each extra requirement sets (like main, dev, docs, tests, ...).
# See: https://github.com/tox-dev/pipdeptree/issues/107
- name: Generate graph
run: >
pipdeptree --python ./.venv/bin/python --packages ${{ needs.project-metadata.outputs.package_name }}
pipdeptree --python ./.venv/bin/python
${{ needs.project-metadata.outputs.package_name && format('--packages {0}', needs.project-metadata.outputs.package_name)}}

Check failure on line 248 in .github/workflows/docs.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

248:121 [line-length] line too long (132 > 120 characters)
--mermaid > ${{ inputs.dependency-graph-output }}
- uses: peter-evans/create-pull-request@v6.0.4
with:
Expand Down

0 comments on commit b7f7de8

Please sign in to comment.