-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apply changes to dev tests to tests on master branch
- Loading branch information
Showing
2 changed files
with
23 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
# A coverage report will be created for the Python 3.9 version | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
|
||
name: ppipes_dev | ||
|
||
on: | ||
|
@@ -118,6 +117,6 @@ jobs: | |
- name: Check sphinx build | ||
uses: ammaraskar/[email protected] | ||
with: | ||
pre-build-command: "python -m pip install uv && uv pip install .[docs] --system" | ||
pre-build-command: "python -m pip install uv && uv pip install .[docs] --system --link-mode=copy" | ||
build-command: "sphinx-build -b html source _build -W" | ||
docs-folder: "doc/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,27 +20,23 @@ jobs: | |
os: [ ubuntu-latest, windows-latest ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a #v4.2.0 | ||
with: | ||
enable-cache: true | ||
cache-dependency-glob: "**/pyproject.toml" | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install .["all"] | ||
shell: bash | ||
- name: List all installed packages | ||
run: | | ||
python -m pip list | ||
run: uv sync --extra test | ||
- name: Test with pytest | ||
if: ${{ matrix.python-version != '3.11' }} | ||
run: | | ||
python -m pytest | ||
uv run pytest -n auto | ||
- name: Test with pytest, Codecov and Coverage | ||
if: ${{ matrix.python-version == '3.11' }} | ||
run: | | ||
python -m pip install pytest-cov | ||
python -m pytest --nbmake -n auto --cov=./ --cov-report=xml | ||
uv pip install pytest-cov | ||
uv run pytest --nbmake -n auto --cov=./ --cov-report=xml | ||
cp ./coverage.xml ./codecov_coverage.xml | ||
- name: Upload coverage to Codacy | ||
if: ${{ matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'}} | ||
|
@@ -66,9 +62,8 @@ jobs: | |
- name: Test without numba | ||
if: ${{ matrix.python-version == '3.11' }} | ||
run: | | ||
python -m pip uninstall numba -y | ||
python -m pytest -n auto | ||
uv pip uninstall numba | ||
uv run pytest -n auto | ||
relying: | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -78,27 +73,26 @@ jobs: | |
os: [ ubuntu-latest, windows-latest ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a #v4.2.0 | ||
with: | ||
enable-cache: true | ||
cache-dependency-glob: "**/pyproject.toml" | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install .["all"] | ||
shell: bash | ||
- name: List all installed packages | ||
run: | | ||
python -m pip list | ||
uv sync --extra test | ||
uv pip install git+https://github.com/e2nIEE/pandapower@develop#egg=pandapower | ||
- name: Test with pytest | ||
# if: ${{ matrix.python-version != '3.11' }} | ||
if: ${{ matrix.python-version != '3.11' }} | ||
run: | | ||
python -m pytest -n auto | ||
uv run pytest -n auto | ||
- name: Test without numba | ||
if: ${{ matrix.python-version == '3.11' }} | ||
run: | | ||
python -m pip uninstall numba -y | ||
python -m pytest -n auto | ||
uv pip uninstall numba | ||
uv run pytest -n auto | ||
tutorial_tests: | ||
name: Tutorial tests | ||
|
@@ -136,6 +130,6 @@ jobs: | |
- name: Check sphinx build | ||
uses: ammaraskar/[email protected] | ||
with: | ||
pre-build-command: "python -m pip install .[docs]" | ||
pre-build-command: "python -m pip install uv && uv pip install .[docs] --system --link-mode=copy" | ||
build-command: "sphinx-build -b html source _build -W" | ||
docs-folder: "doc/" |