run on test branch #1
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: 🧪 EnMAP-Box Windows Tests | |
on: | |
push: | |
branches: | |
- main | |
- release-** | |
- refactor_environments | |
- release_** | |
- tests_windows | |
pull_request: | |
branches: | |
- main | |
- release-** | |
- release_** | |
workflow_dispatch: | |
# all branches allowed | |
release: | |
types: [published] | |
jobs: | |
# Run EnMAP-Box tests | |
test: | |
runs-on: windows-2022 | |
container: | |
image: ernstste/enmapbox_base_win:latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Install dependencies and set the repo up | |
run: | | |
pip install --upgrade pip setuptools wheel pytest-cov | |
pip install -r .\env\osgeo4w\requirements_osgeo4w.txt | |
python .\scripts\setup_repository.py | |
- name: Run tests | |
run: .\scripts\runtests.bat |