Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 33 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,53 @@
name: CI

on: [push]
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: "0 5 * * 0"


# Cancel any in-progress runs when a new run is triggered
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: CI
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v2

- name: Setup micromamba
uses: mamba-org/setup-micromamba@v2
with:
micromamba-version: latest
environment-file: environment.yaml
log-level: debug
init-shell: bash
cache-environment: true
cache-downloads: true
- name: Test snakemake workflow
shell: bash -l {0}

- name: Run unit tests
run: |
python -m pytest test

- name: Test snakemake workflow for compile_cost_assumptions
run: |
snakemake --cores all -f compile_cost_assumptions

- name: Test snakemake workflow for compile_cost_assumptions_usa
run: |
snakemake --cores all -f compile_cost_assumptions_usa

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions docs/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Upcoming Release
.. The features listed below are not released yet, but will be part of the next release!
.. To use the features already you have to use the ``master`` branch.

* Include unit test execution and compile_cost_assumptions_usa.py in ci.yaml (https://github.com/PyPSA/technology-data/pull/174)

`v0.11.0 <https://github.com/PyPSA/technology-data/releases/tag/v0.11.0>`__ (24th January 2025)
=======================================================================================

Expand Down