Skip to content

[TLM CI] Allow test to be ran on PR branch #3208

[TLM CI] Allow test to be ran on PR branch

[TLM CI] Allow test to be ran on PR branch #3208

Workflow file for this run

name: CI
on:
push: # only run on push to main
branches: [main]
pull_request: # open between any two branches
jobs:
typecheck:
name: Type check
runs-on: ubuntu-latest
steps:
- name: Check out latest commit
if: ${{ github.event.issue.pull_request }}
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- run: |
python -m pip install --upgrade pip
pip install . # install deps
pip install mypy
mypy --install-types --non-interactive cleanlab_studio
- run: mypy --strict cleanlab_studio