From 4eb7a5fc601300f19908ca21b4c7a800becbe6dc Mon Sep 17 00:00:00 2001 From: Eugene Brodsky Date: Mon, 26 Jun 2023 12:21:27 -0400 Subject: [PATCH] (ci) clean up pip tests --- .github/workflows/test-invoke-pip-skip.yml | 32 ++++++---------------- .github/workflows/test-invoke-pip.yml | 16 +---------- 2 files changed, 9 insertions(+), 39 deletions(-) diff --git a/.github/workflows/test-invoke-pip-skip.yml b/.github/workflows/test-invoke-pip-skip.yml index d4c9d9fc00..004b46d5a8 100644 --- a/.github/workflows/test-invoke-pip-skip.yml +++ b/.github/workflows/test-invoke-pip-skip.yml @@ -1,10 +1,16 @@ name: Test invoke.py pip + +# This is a dummy stand-in for the actual tests +# we don't need to run python tests on non-Python changes +# But PRs require passing tests to be mergeable + on: pull_request: paths: - '**' - '!pyproject.toml' - '!invokeai/**' + - '!tests/**' - 'invokeai/frontend/web/**' merge_group: workflow_dispatch: @@ -19,48 +25,26 @@ jobs: strategy: matrix: python-version: - # - '3.9' - '3.10' pytorch: - # - linux-cuda-11_6 - linux-cuda-11_7 - linux-rocm-5_2 - linux-cpu - macos-default - windows-cpu - # - windows-cuda-11_6 - # - windows-cuda-11_7 include: - # - pytorch: linux-cuda-11_6 - # os: ubuntu-22.04 - # extra-index-url: 'https://download.pytorch.org/whl/cu116' - # github-env: $GITHUB_ENV - pytorch: linux-cuda-11_7 os: ubuntu-22.04 - github-env: $GITHUB_ENV - pytorch: linux-rocm-5_2 os: ubuntu-22.04 - extra-index-url: 'https://download.pytorch.org/whl/rocm5.2' - github-env: $GITHUB_ENV - pytorch: linux-cpu os: ubuntu-22.04 - extra-index-url: 'https://download.pytorch.org/whl/cpu' - github-env: $GITHUB_ENV - pytorch: macos-default os: macOS-12 - github-env: $GITHUB_ENV - pytorch: windows-cpu os: windows-2022 - github-env: $env:GITHUB_ENV - # - pytorch: windows-cuda-11_6 - # os: windows-2022 - # extra-index-url: 'https://download.pytorch.org/whl/cu116' - # github-env: $env:GITHUB_ENV - # - pytorch: windows-cuda-11_7 - # os: windows-2022 - # extra-index-url: 'https://download.pytorch.org/whl/cu117' - # github-env: $env:GITHUB_ENV name: ${{ matrix.pytorch }} on ${{ matrix.python-version }} runs-on: ${{ matrix.os }} steps: - - run: 'echo "No build required"' + - name: skip + run: echo "no build required" diff --git a/.github/workflows/test-invoke-pip.yml b/.github/workflows/test-invoke-pip.yml index 071232e06e..723e805800 100644 --- a/.github/workflows/test-invoke-pip.yml +++ b/.github/workflows/test-invoke-pip.yml @@ -11,6 +11,7 @@ on: paths: - 'pyproject.toml' - 'invokeai/**' + - 'tests/**' - '!invokeai/frontend/web/**' types: - 'ready_for_review' @@ -32,19 +33,12 @@ jobs: # - '3.9' - '3.10' pytorch: - # - linux-cuda-11_6 - linux-cuda-11_7 - linux-rocm-5_2 - linux-cpu - macos-default - windows-cpu - # - windows-cuda-11_6 - # - windows-cuda-11_7 include: - # - pytorch: linux-cuda-11_6 - # os: ubuntu-22.04 - # extra-index-url: 'https://download.pytorch.org/whl/cu116' - # github-env: $GITHUB_ENV - pytorch: linux-cuda-11_7 os: ubuntu-22.04 github-env: $GITHUB_ENV @@ -62,14 +56,6 @@ jobs: - pytorch: windows-cpu os: windows-2022 github-env: $env:GITHUB_ENV - # - pytorch: windows-cuda-11_6 - # os: windows-2022 - # extra-index-url: 'https://download.pytorch.org/whl/cu116' - # github-env: $env:GITHUB_ENV - # - pytorch: windows-cuda-11_7 - # os: windows-2022 - # extra-index-url: 'https://download.pytorch.org/whl/cu117' - # github-env: $env:GITHUB_ENV name: ${{ matrix.pytorch }} on ${{ matrix.python-version }} runs-on: ${{ matrix.os }} env: