-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH/CI: add mypy config, and CI workflow (#2066)
- Loading branch information
1 parent
452de56
commit c57d501
Showing
2 changed files
with
75 additions
and
0 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,46 @@ | ||
name: "Typing Check" | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/typing.yaml" | ||
- "src/**" | ||
- "pyproject.toml" | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
- release/\d{4}.\d{1,2}.\d{1,2} | ||
paths: | ||
- ".github/workflows/typing.yaml" | ||
- "src/**" | ||
- "pyproject.toml" | ||
|
||
jobs: | ||
typing-check: | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: "Checkout Repository" | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
cache: "pip" | ||
|
||
- name: Install Nebari and type stubs | ||
run: | | ||
python --version | ||
pip install -e .[dev] | ||
pip install types-Pygments types-requests types-six | ||
- name: Run MyPy | ||
continue-on-error: true | ||
run: | | ||
mypy |
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