Skip to content
Open
Show file tree
Hide file tree
Changes from 5 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
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,49 @@ jobs:
run: |
pytest

test_pypsa2smspp:
# Test pypsa2smspp package integration
name: Test pypsa2smspp integration
needs:
- test
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
fail-fast: false
matrix:
python-version:
- "3.13"
os:
- ubuntu-latest
env:
MPLBACKEND: Agg # https://github.com/orgs/community/discussions/26434
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0 # Needed for setuptools_scm

- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Install package and dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]

- name: Install pypsa2smspp with tests
run: |
git clone https://github.com/SPSUnipi/pypsa2smspp.git
cd pypsa2smspp
pip install -e .[dev]

- name: Test pypsa2smspp package
run: |
cd pypsa2smspp
pytest -v

test_with_smspp:
# Test package build in matrix of OS and Python versions
name: Test package with SMSpp
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,4 @@ test/temp*
# SMS and pypsa files
*.nc
*.txt
pypsa2smspp/
Loading