forked from pybamm-team/PyBaMM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pybamm-team#3343 from agriyakhetarpal/pst-new-changes
Updates for PyData theme 0.14.0
- Loading branch information
Showing
12 changed files
with
130 additions
and
58 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
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 |
---|---|---|
|
@@ -4,6 +4,9 @@ on: | |
workflow_dispatch: | ||
pull_request: | ||
|
||
env: | ||
FORCE_COLOR: 3 | ||
|
||
concurrency: | ||
# github.workflow: name of the workflow, so that we don't cancel other workflows | ||
# github.event.pull_request.number || github.ref: pull request number or branch name if not a pull request | ||
|
@@ -256,13 +259,59 @@ jobs: | |
- name: Run integration tests for ${{ matrix.os }} with Python ${{ matrix.python-version }} | ||
run: nox -s integration | ||
|
||
# Runs only on Ubuntu with Python 3.11. Skips IDAKLU module compilation | ||
# for speedups, which is already tested in other jobs. | ||
run_doctests: | ||
needs: style | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
name: Doctests (ubuntu-latest / Python 3.11) | ||
|
||
steps: | ||
- name: Check out PyBaMM repository | ||
uses: actions/checkout@v4 | ||
|
||
# Install and cache apt packages | ||
- name: Install Linux system dependencies | ||
uses: awalsh128/[email protected] | ||
with: | ||
packages: gfortran gcc graphviz pandoc | ||
execute_install_scripts: true | ||
|
||
# dot -c is for registering graphviz fonts and plugins | ||
- name: Install OpenBLAS and TeXLive for Linux | ||
run: | | ||
sudo apt-get update | ||
sudo dot -c | ||
sudo apt-get install libopenblas-dev texlive-latex-extra dvipng | ||
- name: Set up Python 3.11 | ||
id: setup-python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
cache: 'pip' | ||
cache-dependency-path: setup.py | ||
|
||
- name: Install PyBaMM dependencies | ||
run: | | ||
pip install --upgrade pip wheel setuptools nox | ||
pip install -e .[all,docs] | ||
- name: Install docs dependencies and run doctests for GNU/Linux with Python 3.11 | ||
run: nox -s doctests | ||
|
||
- name: Check if the documentation can be built for GNU/Linux with Python 3.11 | ||
run: nox -s docs | ||
|
||
# Runs only on Ubuntu with Python 3.11 | ||
run_doctests_and_example_tests: | ||
run_example_tests: | ||
needs: style | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
name: Doctests and notebooks (ubuntu-latest / Python 3.11) | ||
name: Example notebooks (ubuntu-latest / Python 3.11) | ||
|
||
steps: | ||
- name: Check out PyBaMM repository | ||
|
@@ -311,9 +360,6 @@ jobs: | |
- name: Install SuiteSparse and SUNDIALS on GNU/Linux | ||
run: nox -s pybamm-requires | ||
|
||
- name: Install docs dependencies and run doctests for GNU/Linux with Python 3.11 | ||
run: nox -s doctests | ||
|
||
- name: Install dev dependencies and run example tests for GNU/Linux with Python 3.11 | ||
run: nox -s examples | ||
|
||
|
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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<!-- a stub file to add CONTRIBUTING.md from the root directory | ||
to the hosted docs --> | ||
|
||
```{include} ../../../CONTRIBUTING.md | ||
``` |
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.