From 033521b7af1216064c76e31c220c676cc499ddc9 Mon Sep 17 00:00:00 2001 From: Haofei Yu <1125027232@qq.com> Date: Wed, 29 May 2024 21:53:31 -0400 Subject: [PATCH] sync pytest with mypy --- .github/workflows/mypy.yml | 2 -- .github/workflows/{tests.yml => pytest.yml} | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) rename .github/workflows/{tests.yml => pytest.yml} (95%) diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 46c2a22d..efc821d3 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -11,10 +11,8 @@ concurrency: cancel-in-progress: true jobs: - Static-Type-Checking: runs-on: ubuntu-latest - if: contains(github.event.pull_request.labels.*.name, 'ready-for-review') strategy: max-parallel: 5 matrix: diff --git a/.github/workflows/tests.yml b/.github/workflows/pytest.yml similarity index 95% rename from .github/workflows/tests.yml rename to .github/workflows/pytest.yml index 25dc7abf..869f1d2f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/pytest.yml @@ -29,7 +29,7 @@ jobs: curl -sSL https://install.python-poetry.org | python3 poetry install --all-extras - name: Test with pytest - env: # Or as an environment variable + env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} HF_TOKEN: ${{ secrets.HF_TOKEN }} TOGETHER_API_KEY: ${{ secrets.TOGETHER_API_KEY }}