Add thirdPartyPayment bit to credman #661
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: build | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| python: ['3.10', '3.11', '3.12', '3.13', 'pypy3.10'] | |
| architecture: [x86, x64] | |
| exclude: | |
| - os: ubuntu-latest | |
| architecture: x86 | |
| - os: macos-latest | |
| architecture: x86 | |
| - os: windows-latest | |
| python: pypy3 | |
| - os: macos-latest | |
| python: pypy3 | |
| - os: macos-latest | |
| python: 3.10 | |
| name: ${{ matrix.os }} Py ${{ matrix.python }} ${{ matrix.architecture }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: false | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| architecture: ${{ matrix.architecture }} | |
| - name: Install dependencies | |
| if: "startsWith(matrix.os, 'ubuntu')" | |
| run: | | |
| sudo apt-get install -qq swig libpcsclite-dev | |
| - name: Install the project | |
| run: uv sync --all-extras | |
| - name: Run pre-commit | |
| if: "!startsWith(matrix.python, 'pypy')" | |
| shell: bash | |
| run: | | |
| uv tool install pre-commit | |
| echo $(python --version) | grep -q "Python 3.10" && export SKIP=pyright | |
| pre-commit run --all-files | |
| - name: Run unit tests | |
| run: uv run pytest --no-device | |
| build: | |
| #needs: test | |
| runs-on: ubuntu-latest | |
| name: Build Python source .tar.gz | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: false | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.x | |
| - name: Build source package | |
| run: | | |
| # poetry will by default set all timestamps to 0, which Debian doesn't allow | |
| export SOURCE_DATE_EPOCH=$(git show --no-patch --format=%ct) | |
| uv build | |
| - name: Upload source package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: fido2-python-sdist | |
| path: dist | |
| docs: | |
| runs-on: ubuntu-latest | |
| name: Build sphinx documentation | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: false | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.13 | |
| - name: Build sphinx documentation | |
| run: uv run make -C docs/ html | |
| - name: Upload documentation | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: python-fido2-docs | |
| path: docs/_build/html |