Skip to content

Conversation

@zhang-lucy
Copy link
Contributor

No description provided.

@zhang-lucy zhang-lucy force-pushed the zhang-lucy/deprecations-ci branch from 14e7e70 to dd0676f Compare May 9, 2025 22:23
@zhang-lucy zhang-lucy force-pushed the zhang-lucy/deprecations-ci branch from dd0676f to db789c2 Compare May 9, 2025 22:26
@zhang-lucy zhang-lucy changed the title [draft] add script to find all modal files and check for deprecations [draft][dnm] add script to find all modal files and check for deprecations May 9, 2025
try:
with open(path, "r", encoding="utf-8") as f:
content = f.read()
return "@modal." in content or "modal.App()" in content
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not import modal?

- name: Run ${{ matrix.example }} with modal
run: |
set -o pipefail
modal serve ${{ matrix.example }} 2>&1 | tee output.log
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we know serve is the right command?

set -o pipefail
modal serve ${{ matrix.example }} 2>&1 | tee output.log

- name: Check for deprecation warnings
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we maybe just add a step like this after the existing CI?

@zhang-lucy zhang-lucy closed this May 21, 2025
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.

2 participants