Bump dev version #871
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: Ubuntu | |
on: [push, pull_request] | |
permissions: read-all | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: ".python-version" | |
- name: Install dependencies | |
run: | | |
sudo apt-get install -qq swig libpcsclite-dev | |
- name: Install the project | |
run: uv sync --locked | |
- name: Run pre-commit hooks | |
run: | | |
uv tool install pre-commit | |
pre-commit install | |
pre-commit run --all-files --verbose | |
- name: Run unit tests | |
run: uv run pytest | |
- name: PyInstaller | |
run: | | |
uv run pyinstaller ykman.spec | |
dist/ykman/ykman --version | |
[[ -z "$(dist/ykman/ykman --version | grep -E "not found|missing")" ]] | |
export REF=$(echo ${GITHUB_REF} | cut -d '/' -f 3) | |
mv dist/ykman dist/ykman-$REF | |
- name: Upload build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ykman-builds-ubuntu | |
path: dist |