Skip to content

Commit

Permalink
Test unit tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nvdaes committed Mar 9, 2025
1 parent 92963d2 commit a0d41a8
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/nvdaBuilder/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build NVDA

description: 'Builds NVDA'
inputs:
use-cache:
description: 'Indicates if cache action should be used: true or false'
default: 'true'
scons-source:
description: 'Indicates if scons source should be run: true or false'
default: 'true'
runs:
using: "composite"

steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
uses: actions/setup-python@v5
with:
python-version: '3.11'
architecture: x86
- name: Cache dependencies
id: cacheDependencies
if: ${{ inputs.use-cache }}
uses: actions/cache@v4
with:
path: |
.venv
source
key: ${{ runner.os }}-${{ hashFiles('requirements.txt', 'source/locale/**/*.po') }}
- name: Set version variables
run: powershell.exe ci/scripts/setBuildVersionVars.ps1
shell: cmd
- name: Set scons args
run: powershell.exe ci/scripts/setSconsArgs.ps1
shell: cmd
- name: Prepare source code
if: ${{ steps.cacheDependencies.outputs.cache-hit != 'true' && inputs.scons-source == 'true' }}
run: scons source %sconsArgs% --all-cores
shell: cmd
- name: Restore modified files
run: git restore .
shell: cmd
- name: Update submodules
run: git submodule update
shell: cmd
- name: Prepare for tests
run: powershell.exe ci/scripts/tests/beforeTests.ps1
shell: cmd
2 changes: 1 addition & 1 deletion .github/workflows/unitTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ jobs:
# with:
# submodules: true
- name: Build NVDA
uses: .../nvdaBuilder
uses: ./nvdaBuilder
- name: Run unit tests
run: powershell.exe ci/scripts/tests/unitTests.ps1

0 comments on commit a0d41a8

Please sign in to comment.