Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fangchenli committed Oct 18, 2023
1 parent ec65152 commit 9142ebb
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/typing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: "Typing Check"

on:
pull_request:
paths:
- ".github/workflows/typing.yaml"
- "tests/**"
- "scripts/**"
- "src/**"
- "pyproject.toml"
push:
branches:
- main
- develop
- release/\d{4}.\d{1,2}.\d{1,2}
paths:
- ".github/workflows/typing.yaml"
- "tests/**"
- "scripts/**"
- "src/**"
- "pyproject.toml"

jobs:
typing-check:
runs-on: ubuntu-latest
continue-on-error: true
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
run: |
python --version
pip install -e .[dev]
- name: Run MyPy
run: |
mypy --install-types

0 comments on commit 9142ebb

Please sign in to comment.