Debug #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Debug test_sundry | |
| on: [push] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Debug test_sundry | |
| runs-on: self-hosted | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python: ["python3.10", "python3.11"] | |
| steps: | |
| - name: Clear workspace | |
| run: rm -rf "${GITHUB_WORKSPACE:?}/*" | |
| - name: Checkout | |
| uses: actions/[email protected] | |
| with: | |
| fetch-depth: 1 | |
| show-progress: false | |
| persist-credentials: false | |
| - name: Set version statically | |
| run: | | |
| VERSION=0.0.0 | |
| sed -i "s/setup_requires=.*/version='$VERSION',/; s/use_scm_version=.*//" setup.py | |
| - name: Debug distutils availability (old container) | |
| uses: ./.github/actions/run-in-container | |
| with: | |
| image: danielflook/python-minifier-build:${{ matrix.python }}-2024-09-15 | |
| run: | | |
| echo "=== System information ===" | |
| cat /etc/os-release | |
| ${{ matrix.python }} --version | |
| echo "=== Testing distutils.bcppcompiler import directly ===" | |
| ${{ matrix.python }} -c "import distutils.bcppcompiler; print('SUCCESS: distutils.bcppcompiler imported')" || echo "FAILED to import distutils.bcppcompiler" | |
| echo "=== Testing original test_sundry.py directly ===" | |
| ${{ matrix.python }} /usr/local/lib/python${{ matrix.python == 'python3.10' && '3.10' || '3.11' }}/test/test_sundry.py || echo "FAILED: original test_sundry.py" | |
| echo "=== Testing environment under tox ===" | |
| tox -r -e $(echo "${{ matrix.python }}" | tr -d .) -- xtest --version | |
| echo "=== Testing distutils import under tox ===" | |
| tox -r -e $(echo "${{ matrix.python }}" | tr -d .) -- -c "import distutils.bcppcompiler; print('SUCCESS in tox')" | |
| echo "=== Testing with verbose output ===" | |
| tox -r -e $(echo "${{ matrix.python }}" | tr -d .) -- xtest -v | |
| - name: Debug distutils availability | |
| uses: ./.github/actions/run-in-container | |
| with: | |
| image: danielflook/python-minifier-build:${{ matrix.python }}-2025-08-13 | |
| run: | | |
| echo "=== System information ===" | |
| cat /etc/os-release | |
| ${{ matrix.python }} --version | |
| echo "=== Testing distutils.bcppcompiler import directly ===" | |
| ${{ matrix.python }} -c "import distutils.bcppcompiler; print('SUCCESS: distutils.bcppcompiler imported')" || echo "FAILED to import distutils.bcppcompiler" | |
| echo "=== Testing original test_sundry.py directly ===" | |
| ${{ matrix.python }} /usr/local/lib/python${{ matrix.python == 'python3.10' && '3.10' || '3.11' }}/test/test_sundry.py || echo "FAILED: original test_sundry.py" | |
| echo "=== Testing environment under tox ===" | |
| tox -r -e $(echo "${{ matrix.python }}" | tr -d .) -- xtest --version | |
| echo "=== Testing distutils import under tox ===" | |
| tox -r -e $(echo "${{ matrix.python }}" | tr -d .) -- -c "import distutils.bcppcompiler; print('SUCCESS in tox')" | |
| echo "=== Testing with verbose output ===" | |
| tox -r -e $(echo "${{ matrix.python }}" | tr -d .) -- xtest -v | |