Bump v0.21.3 #48
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: Build and Test | |
on: | |
push: | |
paths: | |
- src/** | |
- tools/** | |
- test/** | |
- requirements*.txt | |
- .github/workflows/build-and-test.yml | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
pull_request: | |
workflow_dispatch: | |
inputs: | |
gitRef: | |
description: The git ref to build against | |
required: true | |
type: string | |
doArtifact: | |
description: Publish an artifact | |
required: false | |
default: false | |
type: boolean | |
workflow_call: | |
inputs: | |
gitRef: | |
description: The git ref to build against | |
required: true | |
type: string | |
doArtifact: | |
description: Publish an artifact | |
required: false | |
default: false | |
type: boolean | |
jobs: | |
build-and-test: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.gitRef }} | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install Python dependencies | |
run: | | |
python -m pip install -r requirements-dev.txt | |
- name: Python Tests | |
run: pytest --verbose | |
- name: Install build tools | |
run: | | |
choco install nsis upx -y | |
- name: Build package | |
run: | | |
tools\compile.bat | |
- name: Test Installer | |
run: | | |
tools\test-installer.ps1 -confirm y | |
- name: Publish artifact | |
if: ${{ inputs.doArtifact }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: RWP-dist | |
path: dist/ |