Skip to content

Commit 6209bf5

Browse files
authored
Merge pull request #8 from underworldcode/development
The usual siphon of Development into Main
2 parents 9103066 + 2db9069 commit 6209bf5

88 files changed

Lines changed: 7836 additions & 2153 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/.devcontainer/DOCKERFILE_GHCS

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ RUN conda install -n base -c conda-forge mamba
77
COPY .devcontainer/uw_environment.yml /tmp/conda-tmp/
88
RUN mamba env update -n base --file /tmp/conda-tmp/uw_environment.yml
99

10-
RUN export PETSC_DIR=/opt/conda \
11-
&& pip install petsc4py
12-
13-
RUN pip install gmsh
14-
1510
# Add other dependencies that can't be installed correctly.
1611

1712
##

.github/.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
"postCreateCommand": "conda init && cd /workspaces/underworld3 && export PETSC_DIR=/opt/conda && python3 setup.py build_ext && sudo -E /opt/conda/bin/pip install ."
2121
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
2222
// "remoteUser": "root"
23-
}
23+
}

.github/.devcontainer/uw_environment.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../environment.yml

.github/workflows/CI.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/build_deploy_pdoc.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,43 @@ jobs:
1616
deploy:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020

2121
- name: Install Conda environment with Micromamba
22-
uses: mamba-org/setup-micromamba@v1
22+
uses: mamba-org/setup-micromamba@v2
2323
with:
24-
environment-file: ./.github/workflows/envs/build_uw_docs.yml
24+
environment-file: ./environment.yml
2525
cache-downloads: true
26-
cache-env: true
26+
cache-environment: true
27+
28+
# # gmsh is such a pig to install properly
29+
# - name: Add gmsh package
30+
# shell: bash -l {0}
31+
# run: |
32+
# pip install gmsh
33+
2734

2835
# the following may be needed if conda-forge is out of date
2936
# - name: Add compatible petsc4py
3037
# shell: bash -l {0}
3138
# run: |
3239
# export PETSC_DIR="/home/runner/micromamba-root/envs/uw3_docs"
3340
# pip3 install petsc4py==3.18 --upgrade
34-
3541
- name: Build UW3
3642
shell: bash -l {0}
3743
run: |
38-
export PETSC_DIR="/home/runner/micromamba-root/envs/uw3_docs"
44+
export PETSC_DIR="/home/runner/micromamba/envs/uw3_test/lib"
3945
VERSION=`python3 setup.py --version`
4046
echo "UW - version " ${VERSION}
41-
42-
python3 setup.py develop
43-
pip3 install -e .
47+
./compile.sh
4448
4549
- name: Build docs with pdoc
4650
shell: bash -l {0}
4751
run: |
4852
VERSION=`python3 setup.py --version`
4953
echo "VERSION=$(echo $VERSION)" >> $GITHUB_ENV
5054
# mkdir -p docs
55+
pip install pdoc3
5156
./build_api_docs.sh
5257
5358
# There is an action to build the jupyter book to a different directory
Lines changed: 10 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and test UW3
1+
name: test_uw3
22

33
# We should trigger this from an upload event. Note that pdoc requires us to import the
44
# built code, so this is a building test as well as documentation deployment
@@ -15,58 +15,29 @@ on:
1515
workflow_dispatch:
1616

1717
jobs:
18-
deploy:
19-
runs-on: ubuntu-20.04
18+
test:
19+
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222

2323
- name: Install Conda environment with Micromamba
24-
uses: mamba-org/setup-micromamba@v1
24+
uses: mamba-org/setup-micromamba@v2
2525
with:
26-
environment-file: ./.github/workflows/envs/build_uw_test.yml
26+
environment-file: ./environment.yml
2727
cache-downloads: true
2828
cache-environment: true
2929

30-
# the following may be needed if conda-forge is out of date
31-
# - name: Add compatible petsc4py
32-
# shell: bash -l {0}
33-
# run: |
34-
# export PETSC_DIR="/home/runner/micromamba-root/envs/uw3_test"
35-
# pip3 install petsc4py==3.18 --upgrade
36-
37-
# gmsh is such a pig to install properly
38-
- name: Add gmsh package
39-
shell: bash -l {0}
40-
run: |
41-
pip install gmsh
42-
4330
- name: Build UW3
4431
shell: bash -l {0}
4532
run: |
4633
export PETSC_DIR="/home/runner/micromamba/envs/uw3_test/lib"
4734
VERSION=`python3 setup.py --version`
4835
echo "UW - version " ${VERSION}
4936
50-
python3 setup.py develop
51-
pip3 install -e .
37+
## TODO. Use compile.sh once it is in development
38+
pip install -e . --no-build-isolation
5239
53-
# Test - split into short, low memory tests 0???_*
54-
# and longer, solver-based tests 1???_*
55-
56-
- name: Run pytest
40+
- name: Run tests
5741
shell: bash -l {0}
5842
run: |
59-
pytest tests/test_00??*py
60-
pytest tests/test_0[1-9]??*py
61-
62-
# Poisson solver tests
63-
pytest tests/test_100[0-9]*py
64-
65-
# Stokes solver tests
66-
pytest tests/test_1010*py
67-
pytest tests/test_1011*py
68-
pytest tests/test_1050*py
69-
70-
# Advection/Diffusion solvers
71-
pytest tests/test_1100*py
72-
pytest tests/test_1110*py
43+
./test.sh

.github/workflows/docker-image.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
1-
name: Docker Image CI
1+
name: Image Build and Push
22

33
on:
4-
push:
5-
branches: ["development"]
4+
push:
5+
branches:
6+
- development
7+
68
jobs:
7-
build:
9+
push-to-dockerhub:
810
runs-on: ubuntu-latest
911

1012
steps:
1113
- name: Checkout repository
12-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1315

1416
- name: Exact branch name
1517
run: echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
1618

1719
- name: Login to DockerHub
18-
uses: docker/login-action@v2
20+
uses: docker/login-action@v3
1921
with:
20-
username: ${{ secrets.DOCKERHUB_USERNAME }}
21-
password: ${{ secrets.DOCKERHUB_PWORD }}
22+
username: ${{ secrets.XXX_USERNAME }}
23+
password: ${{ secrets.XXX_PWORD }}
2224

2325
- name: Build and push Docker image
24-
uses: docker/build-push-action@v4.1.1
26+
uses: docker/build-push-action@v6
2527
with:
2628
context: .
2729
push: true
2830
file: ./Dockerfile
2931
platforms: linux/amd64
3032
# see https://github.com/docker/build-push-action/issues/276 for syntax help
31-
tags: julesg/underworld3:${{ env.BRANCH }}
32-
#-$(date +%s)
33+
tags: underworldcode/underworld3:${{ env.BRANCH }} #-$(date +%s)

.github/workflows/draft-pdf.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
# This should be the path to the paper within your repo.
2323
paper-path: docs/joss-paper/paper.md
2424
- name: Upload
25-
uses: actions/upload-artifact@v3
25+
uses: actions/upload-artifact@v4
2626
with:
2727
name: paper
2828
# This is the output path where Pandoc will write the compiled

.github/workflows/envs/build_uw_docs.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)