From 7eb766fbb9f35714518fa3e44763fbd62b74005b Mon Sep 17 00:00:00 2001 From: Ulyana Date: Fri, 13 Sep 2024 15:48:16 -0700 Subject: [PATCH] add ci --- .github/workflows/ci.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ba05a1b..2287c6ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,10 @@ jobs: name: Type check runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout latest commit of pull request + uses: actions/checkout@v3 + with: + ref: refs/pull/${{ github.event.pull_request.number }}/head - uses: actions/setup-python@v2 with: python-version: '3.10' @@ -19,12 +22,4 @@ jobs: pip install . # install deps pip install mypy mypy --install-types --non-interactive cleanlab_studio - - run: mypy --strict cleanlab_studio - - name: Check out latest commit - uses: actions/checkout@v4 - with: - ref: ${{ github.event.issue.pull_request.head.ref }} - - name: Checkout latest commit of pull request - uses: actions/checkout@v3 - with: - ref: refs/pull/${{ github.event.pull_request.number }}/head \ No newline at end of file + - run: mypy --strict cleanlab_studio \ No newline at end of file