added back the option to save economic_loss_array.npy #34
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: CI on WIN | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build-windows: | |
runs-on: "windows-latest" | |
env: | |
CONDA: C:\Miniconda\condabin\conda.bat | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.9'] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies with conda | |
shell: powershell | |
run: | | |
${{ env.CONDA }} init powershell | |
${{ env.CONDA }} create -n base python=${{ matrix.python-version }} | |
${{ env.CONDA }} env update -f ./installation/environment.yml -n base | |
${{ env.CONDA }} activate base | |
${{ env.CONDA }} install -c conda-forge pygraphviz | |
- name: Check environment | |
shell: powershell | |
run: | | |
${{ env.CONDA }} info | |
${{ env.CONDA }} list | |
- name: Run pytest | |
shell: powershell | |
run: | | |
${{ env.CONDA }} activate base | |
python -m pytest | |
- name: Upload Coverage to codecov | |
uses: codecov/codecov-action@v2 |