-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix using `.A` instead of `.toarray()` * Fix typos * Fix class template in the docs * Use BLAS/LAPACK from conda * Update GA's versions * Update pre-commits * Fix `pyproject.toml` * Switch to `myst-nb` * Use amsmath * Remove `enviroment.yaml` * Drop `tox-conda` * Use conda in CI * Remove `tox` from CI * Don't skip on `mpi4py` * Install petsc/slepc * Specify correct shell * Change env name * Fix conda CI * Update codecov action * Update coverage * Add codecov token to CI
- Loading branch information
Showing
13 changed files
with
82 additions
and
103 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 |
---|---|---|
|
@@ -30,29 +30,36 @@ jobs: | |
slepc: 'slepc' | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Conda | ||
uses: conda-incubator/setup-[email protected] | ||
with: | ||
python-version: ${{ matrix.python }} | ||
auto-update-conda: true | ||
channels: conda-forge,defaults | ||
|
||
- name: Install pip dependencies | ||
shell: bash -el {0} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox codecov | ||
pip install '.[test]' | ||
- name: Install conda dependencies | ||
if: ${{ matrix.slepc == 'slepc' }} | ||
shell: bash -el {0} | ||
run: | | ||
conda install petsc slepc petsc4py slepc4py mpi4py | ||
- name: Test | ||
shell: bash -el {0} | ||
run: | | ||
tox -e py${{ matrix.python }}-${{ matrix.slepc }} -vv | ||
env: | ||
PLATFORM: ${{ matrix.os }} | ||
python -m pytest --cov --cov-config=tox.ini --no-cov-on-fail --cov-report=xml --cov-report=term-missing:skip-covered -vv | ||
- name: Upload coverage | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
fail_ci_if_error: false | ||
files: ./coverage.xml | ||
flags: unittests | ||
name: ${{ matrix.os }}-${{ matrix.python }}-${{ matrix.slepc }} | ||
env_vars: OS,PYTHON | ||
fail_ci_if_error: false | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true |
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
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
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
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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
-r ../requirements.txt | ||
nbsphinx>=0.8 | ||
sphinx>=5 | ||
sphinx-autodoc-annotation | ||
sphinx-autodoc-typehints>=1.10.3 | ||
myst-nb | ||
sphinx>=8 | ||
sphinx-copybutton | ||
sphinx_last_updated_by_git | ||
sphinx_autodoc_typehints | ||
sphinx_rtd_theme | ||
sphinxcontrib-spelling |
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 |
---|---|---|
@@ -1,33 +1,31 @@ | ||
:github_url: {{ fullname }} | ||
|
||
{{ fullname | escape | underline}} | ||
{{ fullname | escape | underline }} | ||
|
||
.. currentmodule:: {{ module }} | ||
|
||
.. autoclass:: {{ objname }} | ||
{% block methods %} | ||
{%- if methods %} | ||
.. rubric:: {{ _('Methods') }} | ||
|
||
{% block methods %} | ||
{% if methods %} | ||
.. rubric:: Methods | ||
.. autosummary:: | ||
:toctree: . | ||
{% for item in methods %} | ||
{%- if item not in ['__init__', 'tree_flatten', 'tree_unflatten', 'bind', 'tabulate', 'module_paths'] %} | ||
~{{ name }}.{{ item }} | ||
{%- endif %} | ||
{%- endfor %} | ||
{%- endif %} | ||
{%- endblock %} | ||
{% block attributes %} | ||
{%- if attributes %} | ||
.. rubric:: {{ _('Attributes') }} | ||
|
||
.. autosummary:: | ||
:toctree: . | ||
{% for item in methods %} | ||
{%- if item != '__init__' %} | ||
~{{ fullname }}.{{ item }} | ||
{%- endif -%} | ||
{%- endfor %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block attributes %} | ||
{% if attributes %} | ||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
:toctree: . | ||
{% for item in attributes %} | ||
~{{ fullname }}.{{ item }} | ||
{%- endfor %} | ||
{% endif %} | ||
{% endblock %} | ||
.. autosummary:: | ||
:toctree: . | ||
{% for item in attributes %} | ||
~{{ name }}.{{ item }} | ||
{%- endfor %} | ||
{%- endif %} | ||
{% endblock %} |
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.