Created
February 27, 2020 17:52
-
-
Save phargogh/6c2ae5473298ac8082af7de438583ec0 to your computer and use it in GitHub Desktop.
GitHub Actions YML to run the InVEST autotest suite
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: 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