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.
- Loading branch information
Showing
201 changed files
with
3,494 additions
and
3,291 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Bug Report | ||
description: File a bug report | ||
title: "[Bug]: " | ||
labels: ["bug"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! | ||
- type: input | ||
id: PyBaMM-version | ||
attributes: | ||
label: PyBaMM Version | ||
description: What version of PyBaMM are you running? | ||
placeholder: PyBaMM version | ||
validations: | ||
required: true | ||
- type: input | ||
id: python-version | ||
attributes: | ||
label: Python Version | ||
description: What version of python are you running? | ||
placeholder: python version | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: what-happened | ||
attributes: | ||
label: Describe the bug | ||
description: A clear and concise description of what the bug is. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: reproduce | ||
attributes: | ||
label: Steps to Reproduce | ||
description: Tell us how to reproduce this behaviour. Ideally, this should take the form of a [Minimum Workable Example](https://stackoverflow.com/help/minimal-reproducible-example) | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: Relevant log output | ||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. | ||
render: shell |
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 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: I'm unsure where to go | ||
url: https://www.pybamm.org/contact | ||
about: If you are unsure where to go, then joining our chat is recommended; Just ask! |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Feature Request | ||
description: Suggest an idea for this project | ||
labels: ["feature"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this form! | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: Explanation of the feature. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: motivation | ||
attributes: | ||
label: Motivation | ||
description: Why are we doing this? What use cases does it support? What is the expected outcome? | ||
- type: textarea | ||
id: implementation | ||
attributes: | ||
label: Possible Implementation | ||
description: Suggest an idea for implementing the addition or change. | ||
- type: textarea | ||
id: additional-context | ||
attributes: | ||
label: Additional context | ||
description: Add any other context or screenshots about the feature request here. |
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,7 +1,11 @@ | ||
- Increment version number in | ||
- `pybamm/version` | ||
- `docs/conf.py` | ||
- `CITATION.cff` | ||
- `vcpkg.json` | ||
- Update CHANGELOG.md with a summary of the release | ||
- Run `scripts/update_version.py` to | ||
- Increment version number in | ||
- `pybamm/version.py` | ||
- `docs/conf.py` | ||
- `CITATION.cff` | ||
- `vcpkg.json` | ||
- Update baseline of registries in `vcpkg-configuration.json` as the latest commit id from [pybamm-team/sundials-vcpkg-registry](https://github.com/pybamm-team/sundials-vcpkg-registry) | ||
- Update `CHANGELOG.md` with a summary of the release | ||
|
||
- Update jax and jaxlib to latest version in `pybamm.util` and fix any bugs that arise | ||
- If building wheels on Windows gives a `vcpkg` related error - revert the baseline of default-registry to a stable commit in `vcpkg-configuration.json` |
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,50 @@ | ||
name: Create GitHub release | ||
|
||
on: | ||
push: | ||
branches: main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
create-release: | ||
# This workflow is only of value to PyBaMM and would always be skipped in forks | ||
if: github.repository_owner == 'pybamm-team' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Get current date | ||
run: | | ||
echo "VERSION=$(date +'v%y.%-m')" >> $GITHUB_ENV | ||
echo "TODAY=$(date +'%d')" >> $GITHUB_ENV | ||
- name: Fail the job if date < 20 | ||
if: ${{ env.TODAY }} < 20 | ||
uses: actions/github-script@v5 | ||
with: | ||
script: core.setFailed('This workflow should be triggered only at the end of the month, or else it will create a release for the wrong month.') | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install wheel | ||
pip install --editable . | ||
- name: Get Changelog | ||
run: python -c "from scripts.update_version import get_changelog; get_changelog()" | ||
|
||
- name: Create release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ env.VERSION }} | ||
body_path: CHANGELOG.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,16 +87,16 @@ jobs: | |
if: matrix.os == 'ubuntu-latest' | ||
run: tox -e pybamm-requires | ||
|
||
- name: Run unit tests for GNU/Linux with Python 3.8 and 3.9 | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version != 3.7 | ||
- name: Run unit tests for GNU/Linux with Python 3.7 and 3.8 | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version != 3.9 | ||
run: python -m tox -e unit | ||
|
||
- name: Run unit tests for GNU/Linux with Python 3.7 and generate coverage report | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.7 | ||
- name: Run unit tests for GNU/Linux with Python 3.9 and generate coverage report | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 | ||
run: tox -e coverage | ||
|
||
- name: Upload coverage report | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.7 | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 | ||
uses: codecov/[email protected] | ||
|
||
- name: Run integration tests for GNU/Linux | ||
|
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,39 @@ | ||
name: Update copyright year(s) | ||
|
||
on: | ||
# Manual trigger | ||
workflow_dispatch: | ||
# Every January 1st at 3am GMT | ||
schedule: | ||
- cron: "0 3 1 1 *" | ||
|
||
jobs: | ||
license: | ||
# This workflow is only of value to PyBaMM and would always be skipped in forks | ||
if: github.repository_owner == 'pybamm-team' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Update year in license | ||
uses: FantasticFiasco/action-update-license-year@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
path: LICENSE.txt | ||
|
||
docs: | ||
# This workflow is only of value to PyBaMM and would always be skipped in forks | ||
if: github.repository_owner == 'pybamm-team' | ||
needs: license | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Update year in docs | ||
uses: FantasticFiasco/action-update-license-year@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
path: docs/conf.py | ||
transform: (?<=copyright = ")(?<from>\d{4})?-?(\d{4})? |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.