From 9f9f18066c6e92ece919969c8fb2ca2ea1196f4a Mon Sep 17 00:00:00 2001 From: Santhosh <52504160+santacodes@users.noreply.github.com> Date: Wed, 28 Aug 2024 20:27:55 +0530 Subject: [PATCH] Fix failing doctests (#57) Fixed doctests and added pybamm-cookie and PyPI badges to readme. Fixes #56 --- .github/workflows/test_on_push.yml | 14 ++++++++++++-- README.md | 2 ++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_on_push.yml b/.github/workflows/test_on_push.yml index 7f878f3..75aca95 100644 --- a/.github/workflows/test_on_push.yml +++ b/.github/workflows/test_on_push.yml @@ -57,8 +57,8 @@ jobs: - name: Set up Git run: | - git config --global user.name "pybamm user" - git config --global user.email "pybammuser@pybamm.org" + git config --global user.name "github-actions[bot]" + git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - name: Test template generation run: nox -s template-tests @@ -97,6 +97,11 @@ jobs: - name: Install nox run: uv pip install nox[uv] + - name: Set up Git + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" + - name: Check if the documentation can be built run: nox -s docs @@ -169,6 +174,11 @@ jobs: uv pip install copier jinja2-time copier copy . . --trust --defaults + - name: Set up Git + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" + - name: Check if the documentation can be built working-directory: ./pybamm-example-project run: | diff --git a/README.md b/README.md index 3329276..499ec28 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,8 @@ [![Powered by NumFOCUS](https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A)](http://numfocus.org) [![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-red.json)](https://github.com/copier-org/copier) +[![pybamm-cookie](https://img.shields.io/badge/%F0%9F%8D%AA%20pybamm--cookie-cf4c4c?style=flat&link=https%3A%2F%2Fgithub.com%2Fpybamm-team%2Fpybamm-cookie)](https://github.com/pybamm-team/pybamm-cookie) +[![PyPI](https://img.shields.io/badge/PyPI-white?style=flat&logo=pypi&link=https%3A%2F%2Fpypi.org%2Fproject%2Fpybamm-cookie%2F)](https://pypi.org/project/pybamm-cookie/) [![Test template and generated project](https://github.com/pybamm-team/pybamm-cookie/actions/workflows/test_on_push.yml/badge.svg)](https://github.com/pybamm-team/pybamm-cookie/actions/workflows/test_on_push.yml) This repository contains a `copier` template for battery modeling projects using PyBaMM, released under the [BSD-3-Clause license](https://github.com/pybamm-team/pybamm-cookie/blob/main/LICENSE). Currently under active development.