Skip to content

Pypsa model

Pypsa model #5

Workflow file for this run

name: Workflow Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Build environment
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
os:
- macos-latest
- windows-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Set up conda
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge # mamba is faster than base conda
miniforge-version: latest
activate-environment: kansas-city
use-mamba: true
use-only-tar-bz2: false
- run: |
conda config --env --set pip_interop_enabled True
# - name: Cache Conda env
# uses: actions/cache@v4
# with:
# path: ${{ env.CONDA }}/envs
# key: conda-${{ runner.os }}--${{ runner.arch }}--${{ env.today }}-${{ hashFiles('environment.yml') }}
# id: cache-env
- name: Update environment
run: conda env update -n kansas-city -f environment.yml
- name: Run Snakemake Workflow
run: |
snakemake --cores=1