From 9142ebb0de40a6df822f217ea716a9b4f0869331 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Wed, 18 Oct 2023 12:00:24 -0700 Subject: [PATCH] add workflow --- .github/workflows/typing.yaml | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/typing.yaml diff --git a/.github/workflows/typing.yaml b/.github/workflows/typing.yaml new file mode 100644 index 0000000000..8fffe1e20b --- /dev/null +++ b/.github/workflows/typing.yaml @@ -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