Merge pull request #2102 from stonebig/release-title-keeps-its-shape #26
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: test_wppm | |
| # Runs the wppm test suite on every push and pull request touching wppm. | |
| # | |
| # Dependencies are hash-pinned, like build_wppm.yml, so a new pytest release | |
| # cannot change what CI does without a visible commit. To refresh them: | |
| # python -m pip lock -r <(printf 'pytest\npackaging\n') -o pylock.wppmtest.toml | |
| # python -X utf8 -c "from wppm import wheelhouse as wh; wh.pylock_to_req('pylock.wppmtest.toml', r'tests/requir.wppmtest.txt')" | |
| on: | |
| push: | |
| paths: | |
| - 'wppm/**' | |
| - 'winpython/**' | |
| - 'tests/**' | |
| - 'pyproject.toml' | |
| - '.github/workflows/test_wppm.yml' | |
| # tests/test_cycle_config.py checks these two agree with each other, | |
| # which is worth knowing on the commit that changes one of them | |
| - '.github/scripts/**' | |
| - '.github/workflows/build_winpython_cycle.yml' | |
| - 'cycles/**' | |
| pull_request: | |
| paths: | |
| - 'wppm/**' | |
| - 'winpython/**' | |
| - 'tests/**' | |
| - 'pyproject.toml' | |
| - '.github/workflows/test_wppm.yml' | |
| # tests/test_cycle_config.py checks these two agree with each other, | |
| # which is worth knowing on the commit that changes one of them | |
| - '.github/scripts/**' | |
| - '.github/workflows/build_winpython_cycle.yml' | |
| - 'cycles/**' | |
| workflow_dispatch: | |
| permissions: {} | |
| env: | |
| PYTHONIOENCODING: utf-8 | |
| jobs: | |
| pytest: | |
| name: pytest on Python ${{ matrix.python-version }} | |
| runs-on: windows-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # the versions WinPython currently ships | |
| python-version: ['3.13', '3.14'] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Install Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install pinned test dependencies | |
| shell: bash | |
| run: python -m pip install --no-deps --require-hashes -r tests/requir.wppmtest.txt | |
| - name: Run the test suite | |
| shell: bash | |
| run: python -m pytest -q |