-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add types and check action for py-htmltools (#1692)
- Loading branch information
Showing
3 changed files
with
66 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: 'check py-shiny' | ||
description: 'Action that checks py-shiny in multiple steps so that any of them may fail but not prevent the others from running. Note, this action is used by py-htmltools as a way to consistently check py-shiny. If more checks are needed for py-htmltools to believe py-shiny is working, it should be added here.' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Run unit tests | ||
shell: bash | ||
run: | | ||
# Run unit tests | ||
make check-tests | ||
- name: Type check | ||
shell: bash | ||
run: | | ||
# Type check | ||
make check-types | ||
- name: Lint code | ||
shell: bash | ||
run: | | ||
# Lint code | ||
make check-lint | ||
- name: Verify code formatting | ||
shell: bash | ||
run: | | ||
# Verify code formatting | ||
make check-format | ||
- name: Verify code can run with mypy (not Windows) | ||
if: ${{ runner.os != 'Windows' }} | ||
shell: bash | ||
run: | | ||
# Verify code can run with mypy (not Windows) | ||
make ci-check-mypy-can-run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters