Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

fix github actions

Daniel Gatisbd512b08cbc1
diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml
index a1c9682..3df4a86 100644
--- a/.github/workflows/lint_python.yml
+++ b/.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
diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml
index ac3cc7f..1d27ae7 100644
--- a/.github/workflows/publish_pypi.yml
+++ b/.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
diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml
index b7dd6b3..2449b55 100644
--- a/.github/workflows/test_install.yml
+++ b/.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