Skip to content

Extract folder variables in deptry workflows#618

Draft
Copilot wants to merge 5 commits intomainfrom
copilot/improve-deptry-workflow
Draft

Extract folder variables in deptry workflows#618
Copilot wants to merge 5 commits intomainfrom
copilot/improve-deptry-workflow

Conversation

Copy link
Contributor

Copilot AI commented Feb 11, 2026

The deptry workflow previously delegated to make deptry, obscuring which folders were being checked. This extracts SOURCE_FOLDER and MARIMO_FOLDER as explicit workflow variables, matching the pattern used by the marimo workflow.

Changes

  • GitHub Actions: Extract folder paths and Python version from Makefile, run deptry explicitly on each folder
  • GitLab CI: Same approach, consolidated into single script block for variable scope
  • Documentation: Updated .gitlab/TESTING.md and .gitlab/README.md to reflect variable extraction

Implementation

# Extract configuration
SOURCE_FOLDER=$(make -s -f Makefile -f - <<< 'print: ; @echo $(or $(SOURCE_FOLDER),src)' print)
MARIMO_FOLDER=$(make -s -f Makefile -f - <<< 'print: ; @echo $(or $(MARIMO_FOLDER),marimo)' print)
PYTHON_VERSION=$(cat .python-version 2>/dev/null || echo "3.13")

# Run deptry explicitly
if [ -d "$SOURCE_FOLDER" ]; then
  uvx -p "$PYTHON_VERSION" deptry "$SOURCE_FOLDER"
fi

This provides better visibility in workflow logs and maintains consistency with other workflows that extract configuration variables.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • astral.sh
    • Triggering command: /usr/bin/curl curl -LsSf REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Revisit the deptry job</issue_title>
<issue_description>Deptry could be made better by writing into variables in the relevant flows and then within deptry workflow apply deptry to the content of the variables</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 4 commits February 11, 2026 04:25
…orkflows

Co-authored-by: tschm <2046079+tschm@users.noreply.github.com>
Co-authored-by: tschm <2046079+tschm@users.noreply.github.com>
…ipt blocks

Co-authored-by: tschm <2046079+tschm@users.noreply.github.com>
Co-authored-by: tschm <2046079+tschm@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor deptry job to use workflow variables Extract folder variables in deptry workflows Feb 11, 2026
Copilot AI requested a review from tschm February 11, 2026 04:30
@tschm
Copy link
Member

tschm commented Feb 11, 2026

No!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revisit the deptry job

2 participants