Skip to content

Instantly share code, notes, and snippets.

@phargogh
Created February 27, 2020 17:52
Show Gist options
  • Save phargogh/6c2ae5473298ac8082af7de438583ec0 to your computer and use it in GitHub Desktop.
Save phargogh/6c2ae5473298ac8082af7de438583ec0 to your computer and use it in GitHub Desktop.
GitHub Actions YML to run the InVEST autotest suite
name: Run InVEST Autotest
steps:
windows-invest-autotest:
name: Run InVEST-autotest (windows)
needs: build-windows-binaries
runs-on: windows-latest
env:
PYTHON_VERSION: 3.7
PYTHON_ARCH: x64
steps:
- uses: actions/checkout@v1
- name: Get the windows build artifacts
uses: actions/download-artifact@v1
with:
name: InVEST Windows build artifacts
path: dist
- name: Fetch sampledata
run: make data/invest-sample-data
- uses: actions/setup-python@v1
with:
python-version: ${{ env.PYTHON_VERSION }}
architecture: ${{ env.PYTHON_ARCH }}
- name: Run invest-autotest
run: |
cd dist/invest
# Invest-autotest isn't in the binary directory by default
# (added by NSIS installer), so read directly from the source
# tree.
$CWD = (Get-Location).path
python ../../scripts/invest-autotest.py --help
python ../../scripts/invest-autotest.py `
--binary=$CWD/invest.exe `
--cwd=$CWD/../data/invest-sample-data `
--workspace=$CWD/../workspace/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment