diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8e8099eef..d673aa1e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,70 +60,70 @@ jobs: mv dist/psutil*.tar.gz wheelhouse/ # Linux + macOS + Python 2 - py2: - name: py2-${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 20 - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, macos-12] - env: - CIBW_TEST_COMMAND: - PYTHONWARNINGS=always PYTHONUNBUFFERED=1 PSUTIL_DEBUG=1 python {project}/psutil/tests/runner.py && - PYTHONWARNINGS=always PYTHONUNBUFFERED=1 PSUTIL_DEBUG=1 python {project}/psutil/tests/test_memleaks.py - CIBW_TEST_EXTRAS: test - CIBW_BUILD: 'cp27-*' + # py2: + # name: py2-${{ matrix.os }} + # runs-on: ${{ matrix.os }} + # timeout-minutes: 20 + # strategy: + # fail-fast: false + # matrix: + # os: [ubuntu-latest, macos-12] + # env: + # CIBW_TEST_COMMAND: + # PYTHONWARNINGS=always PYTHONUNBUFFERED=1 PSUTIL_DEBUG=1 python {project}/psutil/tests/runner.py && + # PYTHONWARNINGS=always PYTHONUNBUFFERED=1 PSUTIL_DEBUG=1 python {project}/psutil/tests/test_memleaks.py + # CIBW_TEST_EXTRAS: test + # CIBW_BUILD: 'cp27-*' - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 - with: - python-version: 3.9 + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/setup-python@v4 + # with: + # python-version: 3.9 - - name: Create wheels + run tests - uses: pypa/cibuildwheel@v1.12.0 + # - name: Create wheels + run tests + # uses: pypa/cibuildwheel@v1.12.0 - - name: Upload wheels - uses: actions/upload-artifact@v3 - with: - name: wheels - path: wheelhouse + # - name: Upload wheels + # uses: actions/upload-artifact@v3 + # with: + # name: wheels + # path: wheelhouse - - name: Generate .tar.gz - if: matrix.os == 'ubuntu-latest' - run: | - make generate-manifest - python setup.py sdist - mv dist/psutil*.tar.gz wheelhouse/ + # - name: Generate .tar.gz + # if: matrix.os == 'ubuntu-latest' + # run: | + # make generate-manifest + # python setup.py sdist + # mv dist/psutil*.tar.gz wheelhouse/ - # Run linters - linters: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 - with: - python-version: 3.x - - name: 'Run linters' - run: | - python3 -m pip install ruff rstcheck toml-sort sphinx - make lint-all + # # Run linters + # linters: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/setup-python@v4 + # with: + # python-version: 3.x + # - name: 'Run linters' + # run: | + # python3 -m pip install ruff rstcheck toml-sort sphinx + # make lint-all - # Check sanity of .tar.gz + wheel files - check-dist: - needs: [py2, py3] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 - with: - python-version: 3.x - - uses: actions/download-artifact@v3 - with: - name: wheels - path: wheelhouse - - run: | - python scripts/internal/print_hashes.py wheelhouse/ - pipx run twine check --strict wheelhouse/* - pipx run abi3audit --verbose --strict wheelhouse/*-abi3-*.whl + # # Check sanity of .tar.gz + wheel files + # check-dist: + # needs: [py2, py3] + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/setup-python@v4 + # with: + # python-version: 3.x + # - uses: actions/download-artifact@v3 + # with: + # name: wheels + # path: wheelhouse + # - run: | + # python scripts/internal/print_hashes.py wheelhouse/ + # pipx run twine check --strict wheelhouse/* + # pipx run abi3audit --verbose --strict wheelhouse/*-abi3-*.whl diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py index 9d25b85f7..fbcd7fc09 100755 --- a/psutil/tests/test_contracts.py +++ b/psutil/tests/test_contracts.py @@ -440,7 +440,8 @@ def test_all(self): meth = getattr(self, name) try: meth(value, info) - except Exception: + except Exception: # noqa + raise s = '\n' + '=' * 70 + '\n' s += "FAIL: name=test_%s, pid=%s, ret=%s\n" % ( name, info['pid'], repr(value))