Skip to content

Commit

Permalink
Merge branch 'main' into update_pypsa_version
Browse files Browse the repository at this point in the history
  • Loading branch information
ekatef authored Sep 30, 2024
2 parents ab6a4ef + 2cda6d7 commit 04653d7
Show file tree
Hide file tree
Showing 121 changed files with 16,468 additions and 1,821 deletions.
90 changes: 0 additions & 90 deletions .github/workflows/ci-linux.yaml

This file was deleted.

76 changes: 0 additions & 76 deletions .github/workflows/ci-mac.yaml

This file was deleted.

76 changes: 0 additions & 76 deletions .github/workflows/ci-windows.yaml

This file was deleted.

72 changes: 72 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 5 * * TUE"

env:
CACHE_NUMBER: 2 # Change this value to manually reset the environment cache

jobs:
build:
strategy:
fail-fast: false
max-parallel: 3
matrix:
os:
- ubuntu-latest
- macos-latest
# - windows-latest

runs-on: ${{ matrix.os }}

defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v2


- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.5.9-1'
environment-file: envs/environment.yaml
log-level: debug
init-shell: bash
cache-environment: true
cache-downloads: true


- name: Set cache dates
run: |
echo "WEEK=$(date +'%Y%U')" >> $GITHUB_ENV
- name: Cache data and cutouts folders
uses: actions/cache@v3
with:
path: |
data
cutouts
key: data-cutouts-${{ env.WEEK }}-${{ env.CACHE_NUMBER }}


- name: Conda list
run: conda list

- name: Run Test
run: make test

# - name: Test plotting and summaries
# run: |
# snakemake --cores all plot_all_p_nom
# snakemake --cores all plot_all_summaries
# snakemake --cores all make_all_summaries
# rm -rf resources/*.nc resources/*.geojson resources/*.h5 networks results
Loading

0 comments on commit 04653d7

Please sign in to comment.