Adds test on Windows #29
Workflow file for this run
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: WindowsReleaseTest | |
on: | |
pull_request: | |
schedule: | |
- cron: '0 8 * * 1' | |
jobs: | |
windows_test: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
version: [qgis] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install QGIS on Chocolatey | |
uses: crazy-max/ghaction-chocolatey@v3 | |
with: | |
args: install ${{ matrix.version }} -y | |
- name: Setup plugin | |
shell: pwsh | |
run: | | |
Copy-Item "qaequilibrae" -Destination "$env:APPDATA\QGIS\QGIS3\profiles\default\python\plugins\qaequilibrae" -Recurse | |
$env:PATH=(Get-ChildItem -Path "C:\Program Files" -Directory QGIS*).FullName +"\bin;$env:PATH" | |
$env:QGIS_PLUGIN_IN_CI=1 | |
Get-ChildItem -Path "C:\Program Files\QGIS*\bin\*.bat" -Name | |
$env:PATH -split ";" | |
python-qgis.bat -m pip install -r test/requirements-test.txt | |
Set-Location "$env:APPDATA\QGIS\QGIS3\profiles\default\python\plugins\qaequilibrae" | |
python-qgis.bat download_extra_packages_class.py | |
# - name: Install plugin on LTR | |
# shell: pwsh | |
# if: ${{ (matrix.version != 'qgis')}} | |
# run: | | |
# python-qgis-ltr.bat download_extra_packages_class.py | |
# - name: Install plugin on Latest | |
# shell: pwsh | |
# if: ${{ (matrix.version == 'qgis')}} | |
# run: | | |
# python3.exe download_extra_packages_class.py | |
- name: Run tests | |
shell: pwsh | |
run: | | |
Get-ChildItem -Path "$env:APPDATA\QGIS\QGIS3\profiles\default\python\plugins\qaequilibrae\packages" -Name |