-
-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/develop' into issue_3114_check…
…_coord
- Loading branch information
Showing
260 changed files
with
9,436 additions
and
8,554 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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
--- | ||
title: Create {{ date | date('YY.MM') }} (final or rc0) release | ||
labels: priority:high | ||
--- | ||
Quarterly reminder to create a - | ||
|
||
1. pre-release if the month has just started. | ||
2. non-pre-release if the month is about to end (**before the end of the month**). | ||
|
||
See [Release Workflow](./release_workflow.md) for more information. | ||
See [Release Workflow](https://github.com/pybamm-team/PyBaMM/blob/develop/.github/release_workflow.md) for more information. |
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,6 @@ | ||
--- | ||
title: Fortnightly build for wheels failed | ||
labels: priority:high, bug | ||
--- | ||
|
||
The build is failing with the following logs - {{ env.LOGS }} |
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,86 @@ | ||
name: Build and push Docker images to Docker Hub | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build_docker_images: | ||
# This workflow is only of value to PyBaMM and would always be skipped in forks | ||
if: github.repository_owner == 'pybamm-team' | ||
name: Image (${{ matrix.build-args }}) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
build-args: ["No solvers", "JAX", "ODES", "IDAKLU", "ALL"] | ||
fail-fast: true | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Create tags for Docker images based on build-time arguments | ||
id: tags | ||
run: | | ||
if [ "${{ matrix.build-args }}" = "No solvers" ]; then | ||
echo "tag=latest" >> "$GITHUB_OUTPUT" | ||
elif [ "${{ matrix.build-args }}" = "JAX" ]; then | ||
echo "tag=jax" >> "$GITHUB_OUTPUT" | ||
elif [ "${{ matrix.build-args }}" = "ODES" ]; then | ||
echo "tag=odes" >> "$GITHUB_OUTPUT" | ||
elif [ "${{ matrix.build-args }}" = "IDAKLU" ]; then | ||
echo "tag=idaklu" >> "$GITHUB_OUTPUT" | ||
elif [ "${{ matrix.build-args }}" = "ALL" ]; then | ||
echo "tag=all" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Build and push Docker image to Docker Hub (no solvers) | ||
if: matrix.build-args == 'No solvers' | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: scripts/Dockerfile | ||
tags: pybamm/pybamm:${{ steps.tags.outputs.tag }} | ||
push: true | ||
platforms: linux/amd64, linux/arm64 | ||
|
||
- name: Build and push Docker image to Docker Hub (with ODES and IDAKLU solvers) | ||
if: matrix.build-args == 'ODES' || matrix.build-args == 'IDAKLU' | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: scripts/Dockerfile | ||
tags: pybamm/pybamm:${{ steps.tags.outputs.tag }} | ||
push: true | ||
build-args: ${{ matrix.build-args }}=true | ||
platforms: linux/amd64, linux/arm64 | ||
|
||
- name: Build and push Docker image to Docker Hub (with ALL and JAX solvers) | ||
if: matrix.build-args == 'ALL' || matrix.build-args == 'JAX' | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: scripts/Dockerfile | ||
tags: pybamm/pybamm:${{ steps.tags.outputs.tag }} | ||
push: true | ||
build-args: ${{ matrix.build-args }}=true | ||
# exclude arm64 for JAX and ALL builds for now, see | ||
# https://github.com/google/jax/issues/13608 | ||
platforms: linux/amd64 | ||
|
||
- name: List built image(s) | ||
run: docker images |
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.