浏览代码

fix github actions

Daniel Gatis 9 月之前
父节点
当前提交
bd512b08cb
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      .github/workflows/lint_python.yml
  2. 1 1
      .github/workflows/publish_pypi.yml
  3. 1 1
      .github/workflows/test_install.yml

+ 1 - 1
.github/workflows/lint_python.yml

@@ -9,7 +9,7 @@ jobs:
             - uses: actions/checkout@v4
             - uses: actions/setup-python@v5
             - name: Install dependencies
-              run: pip install .[cli,dev]
+              run: pip install .[cpu,cli,dev]
             - run: mypy --install-types --non-interactive --ignore-missing-imports ./rembg
             - run: bandit --recursive --skip B101,B104,B310,B311,B303,B110 --exclude ./rembg/_version.py ./rembg
             - run: black --force-exclude rembg/_version.py --check --diff ./rembg

+ 1 - 1
.github/workflows/publish_pypi.yml

@@ -12,7 +12,7 @@ jobs:
             - uses: actions/checkout@v4
             - uses: actions/setup-python@v5
             - name: Install dependencies
-              run: pip install .[cli,dev]
+              run: pip install .[cpu,cli,dev]
             - name: Builds and uploads to PyPI
               run: |
                   python3 setup.py sdist bdist_wheel

+ 1 - 1
.github/workflows/test_install.yml

@@ -16,7 +16,7 @@ jobs:
               with:
                   python-version: ${{ matrix.python-version }}
             - name: Install dependencies
-              run: pip install .[cli,dev]
+              run: pip install .[cpu,cli,dev]
             - name: Test installation with pytest
               run: |
                   attempt=0