From bac9a2a728eed2955192895a99cbc505b3834274 Mon Sep 17 00:00:00 2001 From: torzdf <36920800+torzdf@users.noreply.github.com> Date: Wed, 3 Apr 2024 16:33:05 +0100 Subject: [PATCH] test debug --- .github/workflows/pytest.yml | 52 ++---------------------------------- setup.py | 2 ++ 2 files changed, 4 insertions(+), 50 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 1172b91594..3f2b56727b 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -17,13 +17,8 @@ jobs: strategy: fail-fast: false matrix: - os: ["ubuntu-latest", "macos-latest", "windows-latest"] - backend: ["nvidia", "cpu"] - include: - - os: "ubuntu-latest" - backend: "rocm" - - os: "windows-latest" - backend: "directml" + os: ["ubuntu-latest"] + backend: ["cpu"] steps: - uses: actions/checkout@v3 - name: Set cache date @@ -116,46 +111,3 @@ jobs: run: | FACESWAP_BACKEND="${{ matrix.backend }}" python tests/simple_tests.py; - build_windows: - name: "pip (windows-latest, ${{ matrix.backend }})" - runs-on: windows-latest - strategy: - fail-fast: false - matrix: - python-version: ["3.10"] - backend: ["cpu", "directml"] - include: - - backend: "cpu" - - backend: "directml" - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - cache-dependency-path: './requirements/requirements_${{ matrix.backend }}.txt' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pylint mypy pytest pytest-mock wheel - pip install types-attrs types-cryptography types-pyOpenSSL types-PyYAML types-setuptools - pip install -r ./requirements/requirements_${{ matrix.backend }}.txt - - name: List installed packages - run: pip freeze - - name: Set Backend EnvVar - run: echo "FACESWAP_BACKEND=${{ matrix.backend }}" | Out-File -FilePath $env:GITHUB_ENV -Append - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --select=E9,F63,F7,F82 --show-source - # exit-zero treats all errors as warnings. - flake8 . --exit-zero - - name: MyPy Typing - continue-on-error: true - run: | - mypy . - - name: Simple Tests - run: py.test -v tests - - name: End to End Tests - run: python tests/simple_tests.py diff --git a/setup.py b/setup.py index a7a86fe1e4..69bd42e85d 100755 --- a/setup.py +++ b/setup.py @@ -806,6 +806,8 @@ def _check_ld_config(lib: str) -> str: if not path: continue + print(path) + print(lib) retval = next((fname.strip() for fname in reversed(os.listdir(path)) if lib in fname), "") if retval: