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
10 changes: 3 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,11 @@ jobs:

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

- name: Test snakemake workflow for compile_cost_assumptions
- name: Test snakemake workflows
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
make test

- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand Down
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# SPDX-FileCopyrightText: Contributors to technology-data <https://github.com/pypsa/technology-data>
#
# SPDX-License-Identifier: GPL-3.0-only

# coding: utf-8

.ONESHELL:

.PHONY: test unit-test

# Run default tests
test:
set -e
snakemake --cores all -f compile_cost_assumptions --configfile config.yaml
snakemake --cores all -f compile_cost_assumptions_usa --configfile config.yaml
echo "All tests completed successfully."

unit-test:
pytest test