Merge branch 'release/5.5.1' #1197
This file contains 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: Windows | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Poetry | |
run: pipx install poetry | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12.4' | |
cache: poetry | |
- name: Install dependencies | |
run: poetry install | |
- name: Run unit tests | |
run: poetry run pytest -v | |
- name: Build | |
run: poetry build | |
- name: Install from tar.gz | |
shell: bash | |
run: | | |
python -m pip install --upgrade pip | |
pip install dist/*.tar.gz | |
ykman --version | |
[[ -z "$(ykman --version | grep -E "not found|missing")" ]] | |
pip uninstall -y yubikey-manager | |
- name: Install from wheel | |
shell: bash | |
run: | | |
pip install dist/*.whl | |
ykman --version | |
[[ -z "$(ykman --version | grep -E "not found|missing")" ]] | |
pip uninstall -y yubikey-manager | |
- name: PyInstaller | |
shell: bash | |
run: | | |
poetry run pyinstaller ykman.spec | |
dist/ykman/ykman.exe --version | |
[[ -z "$(dist/ykman/ykman.exe --version | grep -E "not found|missing")" ]] | |
- name: Copy scripts | |
shell: bash | |
run: cp -r resources/win dist/scripts | |
- name: Build installer | |
working-directory: ./dist | |
run: .\scripts\make_msi.ps1 | |
- name: Upload build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ykman-builds-windows | |
path: dist |