Repository navigation
[pre-commit.ci] pre-commit autoupdate #989
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: sdist | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref_name != 'master' }} | |
| jobs: | |
| sdist: | |
| # Avoid Ubuntu 24.04 in sdist workflows, because it contains libxmlsec1-dev | |
| # v1.2.39, which has a bug that causes tests/test_pkcs11.py to fail. | |
| # (It thinks the softhsm engine has a public key instead of a private key.) | |
| # libxmlsec1 <=1.2.33 or >=1.2.42 works. TODO: Try 26.04 when available. | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| matrix: | |
| python: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: astral-sh/setup-uv@v10.3.3 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Package source dist | |
| run: uv build --sdist | |
| - name: Install test dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libxml2-dev libxmlsec1-dev libxmlsec1-openssl opensc softhsm2 libengine-pkcs11-openssl | |
| uv sync --locked --no-default-groups --group test --no-install-project --no-binary-package lxml | |
| uv pip install dist/xmlsec-*.tar.gz | |
| - name: Run tests | |
| run: uv run --no-sync pytest -v --color=yes |