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
296 changes: 0 additions & 296 deletions .gitchangelog.rc

This file was deleted.

7 changes: 7 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# AI Instructions

* pylint and ruff must be satisfied for all Python code.
* All new code must have type hints for all function parameters and return types.
* All new code must have docstrings for all public functions and classes.
* All new code must have unit tests for all public functions and classes.
* Changes should be applied as patches not as full file replacements.
28 changes: 0 additions & 28 deletions .github/workflows/pydocstyle.yml

This file was deleted.

7 changes: 3 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v3
Expand All @@ -25,9 +25,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f test/requirements.txt ]; then pip install -r test/requirements.txt; fi
pip install .
pip install .[dev]
python3 -c "import electricpy; print('electricpy.__file__')"
- name: Test with pytest
run: |
pytest --xdoctest
pytest --pydocstyle --xdoctest
14 changes: 7 additions & 7 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@ jobs:
- name: Install Python
uses: actions/setup-python@v3
with:
python-version: "3.11"
python-version: "3.12"
# I don't know where the "run" thing is documented.
- name: Install dependencies
run: |
python -m pip install --upgrade pip
cp logo/ElectricpyLogo.svg docsource/static/ElectricpyLogo.svg
pip install -r docsource/requirements.txt
- name: Build Sphinx docs
if: success()
run: |
pip install .
python3 -c "import electricpy; print('electricpy.__file__')"
python -m pip install .[dev]
python -c "import electricpy; print(electricpy.__file__)"
sphinx-build -M html docsource docs
- name: Generate Coverage Badge
if: success()
run: |
pip install -r test/requirements.txt
coverage run --source=./electricpy -m pytest
coverage-badge -o docs/html/coverage.svg
python -m pip install coverage genbadge pytest
python -m coverage run --source=./electricpy -m pytest
python -m coverage xml -o coverage.xml
python -m genbadge.main coverage -i coverage.xml -o docs/html/coverage.svg

# https://github.com/marketplace/actions/github-pages
#- if: success()
Expand Down
Loading
Loading