@@ -25,42 +25,34 @@ jobs:
2525 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2626 - uses : actions/checkout@v4
2727
28- - name : Set up Python ${{ matrix.python-version }}
29- uses : actions /setup-python@v5
28+ - name : Install uv
29+ uses : astral-sh /setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4.2.0
3030 with :
3131 python-version : ${{ matrix.python-version }}
3232
33- - name : Install pandapower & dependencies
33+ - name : Install dependencies
3434 run : |
35- python -m pip install --upgrade pip
36- python -m pip install igraph pytest-split seaborn matplotlib plotly geopandas ortools xlsxwriter openpyxl cryptography psycopg2 matpowercaseframes
37- pip install -e .
35+ uv sync --all-extras
36+ uv pip install pytest-split
3837
3938 - name : Install specific dependencies (Windows)
4039 if : matrix.os == 'windows-latest'
4140 run : |
42- if ( '${{ matrix.python-version }}' -eq '3.9' ) { python -m pip install pypower }
43- if ( '${{ matrix.python-version }}' -ne '3.9' ) { python -m pip install numba }
44- if ( '${{ matrix.python-version }}' -eq '3.10' ) { python -m pip install lightsim2grid }
41+ if ( '${{ matrix.python-version }}' -eq '3.9' ) { uv pip install pypower }
42+ if ( '${{ matrix.python-version }}' -ne '3.9' ) { uv pip install numba }
43+ if ( '${{ matrix.python-version }}' -eq '3.10' ) { uv pip install lightsim2grid }
4544
4645 - name : Install specific dependencies (Ubuntu)
4746 if : matrix.os == 'ubuntu-latest'
4847 run : |
49- if ${{ matrix.python-version == '3.9' }}; then python -m pip install pypower; fi
50- if ${{ matrix.python-version != '3.9' }}; then python -m pip install numba; fi
51- if ${{ matrix.python-version == '3.10' }}; then python -m pip install lightsim2grid; fi
52-
53- # - name: Install Julia
54- # if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'
55- # run: |
56- # ./.install_julia.sh 1.8
57- # pip install julia
58- # python ./.install_pycall.py
48+ if ${{ matrix.python-version == '3.9' }}; then uv pip install pypower; fi
49+ if ${{ matrix.python-version != '3.9' }}; then uv pip install numba; fi
50+ if ${{ matrix.python-version == '3.10' }}; then uv pip install lightsim2grid; fi
5951
6052 - name : List all installed packages
6153 run : |
62- pip list
54+ uv pip list
6355
6456 - name : Test with pytest
6557 run : |
66- pytest -- splits 2 --group ${{ matrix.group }} --pyargs pandapower.test
58+ uv run pytest -n=auto -- splits 2 --group ${{ matrix.group }}
0 commit comments