Add changelog to generate json file #284
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: Test code | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| testCode: | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.13] | |
| steps: | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| architecture: x64 | |
| - name: Run unit tests | |
| shell: cmd | |
| # Run automated/unit tests | |
| run: .\rununittests.bat | |
| - name: Lint | |
| shell: cmd | |
| # Check code with the linter | |
| run: .\runlint.bat | |
| - name: Validate metadata | |
| shell: cmd | |
| # E2E: test to check the script can be run, no need to actually test the file. | |
| # The internal checks are covered with unit tests. | |
| run: .\runvalidate.bat --dry-run tests/testData/addons/fake/13.0.0.json tests/testData/nvdaAPIVersions.json | |
| - name: Get sha256 | |
| shell: cmd | |
| # E2E: test to check the script can be run | |
| run: .\runsha.bat tests/testData/fake.nvda-addon | |
| - name: Generate json file | |
| shell: cmd | |
| # E2E: test to check the script can be run | |
| run: .\runcreatejson.bat -f tests/testData/fake.nvda-addon --dir tests/testOutput/test_runcreatejson --channel=stable --publisher=fakepublisher --sourceUrl=https://github.com/fake/ --url=https://github.com/fake.nvda-addon --licName="GPL v2" --licUrl="https://www.gnu.org/licenses/gpl-2.0.html" |