Use utf-8 for validation (#40) #209
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: Test code | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
testCode: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
python-version: [3.8] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x86 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install tox | |
- name: Test with tox | |
# Run automated/unit tests | |
run: tox | |
- name: Lint with flake8 | |
# Check code with the linter | |
run: .\runlint.ps1 | |
- name: Validate metadata | |
# 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.ps1 --dry-run _test/testData/addons/fake/13.0.json _tests\testData\nvdaAPIVersions.json | |
- name: Get sha256 | |
# E2E: test to check the script can be run | |
run: .\runsha.ps1 _tests\testData\fake.nvda-addon | |
- name: Generate json file | |
# E2E: test to check the script can be run | |
run: .\runcreatejson.ps1 -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" |