fix(ci): resolve all ruff lint and format errors #2
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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| jobs: | |
| release: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install runtime and build dependencies | |
| run: pip install -e ".[dev]" | |
| - name: Extract bare version (strip leading v) | |
| id: ver | |
| run: echo "version=$('${{ github.ref_name }}'.TrimStart('v'))" >> $env:GITHUB_OUTPUT | |
| - name: Generate icons | |
| run: python scripts/generate_icons.py | |
| - name: Build Windows artifact | |
| run: python scripts/build.py | |
| - name: Smoke test — --version | |
| run: | | |
| $output = & dist\EleitorUM\EleitorUM.exe --version 2>&1 | |
| if ($LASTEXITCODE -ne 0) { | |
| Write-Error "EleitorUM.exe --version exited $LASTEXITCODE" | |
| exit 1 | |
| } | |
| if ($output -notmatch [regex]::Escape("EleitorUM ${{ steps.ver.outputs.version }}")) { | |
| Write-Error "Version mismatch: expected 'EleitorUM ${{ steps.ver.outputs.version }}', got: $output" | |
| exit 1 | |
| } | |
| Write-Host "Smoke test passed: $output" | |
| - name: Publish GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| EleitorUM-${{ steps.ver.outputs.version }}-win64.zip | |
| EleitorUM-${{ steps.ver.outputs.version }}-win64.zip.sha256 |