From 6aae9408346b2c985ab930aaaac6fbdf2aff9cd3 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 1 Mar 2024 10:55:19 +1100 Subject: [PATCH] ci: clean up unused workflow --- .github/workflows/check-pytest.yml | 36 -------------- .github/workflows/pypi-release.yml.old | 67 -------------------------- 2 files changed, 103 deletions(-) delete mode 100644 .github/workflows/pypi-release.yml.old diff --git a/.github/workflows/check-pytest.yml b/.github/workflows/check-pytest.yml index 89b0408f7e..24349ccd2c 100644 --- a/.github/workflows/check-pytest.yml +++ b/.github/workflows/check-pytest.yml @@ -70,39 +70,3 @@ jobs: - name: run pytest id: run-pytest run: pytest - - # - name: run invokeai-configure - # env: - # HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGINGFACE_TOKEN }} - # run: > - # invokeai-configure - # --yes - # --default_only - # --full-precision - # # can't use fp16 weights without a GPU - - # - name: run invokeai - # id: run-invokeai - # env: - # # Set offline mode to make sure configure preloaded successfully. - # HF_HUB_OFFLINE: 1 - # HF_DATASETS_OFFLINE: 1 - # TRANSFORMERS_OFFLINE: 1 - # INVOKEAI_OUTDIR: ${{ github.workspace }}/results - # run: > - # invokeai - # --no-patchmatch - # --no-nsfw_checker - # --precision=float32 - # --always_use_cpu - # --use_memory_db - # --outdir ${{ env.INVOKEAI_OUTDIR }}/${{ matrix.python-version }}/${{ matrix.pytorch }} - # --from_file ${{ env.TEST_PROMPTS }} - - # - name: Archive results - # env: - # INVOKEAI_OUTDIR: ${{ github.workspace }}/results - # uses: actions/upload-artifact@v3 - # with: - # name: results - # path: ${{ env.INVOKEAI_OUTDIR }} diff --git a/.github/workflows/pypi-release.yml.old b/.github/workflows/pypi-release.yml.old deleted file mode 100644 index 162cbe3427..0000000000 --- a/.github/workflows/pypi-release.yml.old +++ /dev/null @@ -1,67 +0,0 @@ -name: PyPI Release - -on: - workflow_dispatch: - inputs: - publish_package: - description: 'Publish build on PyPi? [true/false]' - required: true - default: 'false' - -jobs: - build-and-release: - if: github.repository == 'invoke-ai/InvokeAI' - runs-on: ubuntu-22.04 - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - TWINE_NON_INTERACTIVE: 1 - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Node 18 - uses: actions/setup-node@v4 - with: - node-version: '18' - - - name: Setup pnpm - uses: pnpm/action-setup@v2 - with: - version: '8.12.1' - - - name: Install frontend dependencies - run: pnpm install --prefer-frozen-lockfile - working-directory: invokeai/frontend/web - - - name: Build frontend - run: pnpm run build - working-directory: invokeai/frontend/web - - - name: Install python dependencies - run: pip install --upgrade build twine - - - name: Build python package - run: python3 -m build - - - name: Upload build as workflow artifact - uses: actions/upload-artifact@v4 - with: - name: dist - path: dist - - - name: Check distribution - run: twine check dist/* - - - name: Check PyPI versions - if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') - run: | - pip install --upgrade requests - python -c "\ - import scripts.pypi_helper; \ - EXISTS=scripts.pypi_helper.local_on_pypi(); \ - print(f'PACKAGE_EXISTS={EXISTS}')" >> $GITHUB_ENV - - - name: Publish build on PyPi - if: env.PACKAGE_EXISTS == 'False' && env.TWINE_PASSWORD != '' && github.event.inputs.publish_package == 'true' - run: twine upload dist/*