Skip to content

Adds test on Windows #30

Adds test on Windows

Adds test on Windows #30

Workflow file for this run

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 on Latest
shell: pwsh
if: ${{ (matrix.version == 'qgis')}}
run: |
pwd
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
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
Copy-Item "test" -Destination "$env:APPDATA\QGIS\QGIS3\profiles\default\python\plugins\qaequilibrae\test" -Recurse
python-qgis.bat -m pytest test -v
# - name: Setup plugin on LTR
# shell: pwsh
# if: ${{ (matrix.version != 'qgis')}}
# run: |
# python-qgis-ltr.bat 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