Skip to content

Commit 8e5d660

Browse files
authored
Merge dev on to release for v2.2.0 #minor
2 parents 9c3ad15 + 9ae3e99 commit 8e5d660

File tree

208 files changed

+163680
-52954
lines changed

Some content is hidden

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

208 files changed

+163680
-52954
lines changed
+20-15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Bump Version Number (dev)
1+
name: Bump Version (dev)
22

33
on:
44
push:
@@ -7,19 +7,18 @@ on:
77

88
jobs:
99
build:
10+
if: (! contains(github.event.head_commit.message, '[no bump]'))
11+
1012
name: Bump version
1113
runs-on: ubuntu-latest
1214

1315
steps:
14-
- uses: actions/checkout@v2
15-
with:
16-
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
17-
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
16+
- uses: actions/checkout@v3
1817

1918
- name: Set up Python
2019
uses: actions/setup-python@v2
2120
with:
22-
python-version: 3.8
21+
python-version: 3.9
2322

2423
- name: Set env variables
2524
run: |
@@ -41,14 +40,20 @@ jobs:
4140
bump_version build $VERSION_FILE
4241
# Note that we don't want to create a new tag for "builds"
4342
44-
- name: Commit files
45-
run: |
46-
REPOSITORY=${INPUT_REPOSITORY:-$GITHUB_REPOSITORY}
47-
remote_repo="https://${GITHUB_ACTOR}:${{ secrets.PUSH_ACTION_TOKEN }}@github.com/${REPOSITORY}.git"
43+
# - name: Commit files
44+
# run: |
45+
# REPOSITORY=${INPUT_REPOSITORY:-$GITHUB_REPOSITORY}
46+
# remote_repo="https://${GITHUB_ACTOR}:${{ secrets.PUSH_ACTION_TOKEN }}@github.com/${REPOSITORY}.git"
4847

49-
git config --local user.email "action@github.com"
50-
git config --local user.name "GitHub Action"
48+
# git config --local user.email "action@github.com"
49+
# git config --local user.name "GitHub Action"
5150

52-
# Commit version bump to dev ([no ci] to avoid infinite loop)
53-
git commit -m "Bump version number [no ci]" -a
54-
git push "${remote_repo}" dev
51+
# # Commit version bump to dev ([no ci] to avoid infinite loop)
52+
# git commit -m "Bump version number (build) [no ci]" -a
53+
# git push "${remote_repo}" dev
54+
55+
- name: Commit files
56+
uses: stefanzweifel/git-auto-commit-action@v4
57+
with:
58+
commit_message: Bump version number (build part)
59+
commit_author: Author <actions@github.com>

.github/workflows/bump-version.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Bump Version Number
1+
name: Bump Version (release)
22

33
on:
44
push:

.github/workflows/cleanup-tags.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: Clean up tags
1+
name: Clean Up Tags
22

3-
on: push
3+
on: [workflow_dispatch]
44

55
jobs:
66
deploy:

.github/workflows/examples.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v2
24+
- uses: FedericoCarboni/setup-ffmpeg@v1
2425
- name: Set up Python ${{ matrix.python-version }}
2526
uses: actions/setup-python@v2
2627
with:
@@ -32,17 +33,15 @@ jobs:
3233
# This path is specific to Ubuntu
3334
path: ~/.cache/pip
3435
# Look to see if there is a cache hit for the corresponding requirements file
35-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/pip_requirements.txt') }}
36+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
3637
restore-keys: |
3738
${{ runner.os }}-pip-
3839
${{ runner.os }}-
3940
4041
- name: Install dependencies (pip)
4142
run: |
42-
pip install -r requirements/pip_requirements.txt
43-
pip install -r requirements/test_requirements.txt
44-
# Install porespy from the checked-out branch
45-
pip install -e . --no-deps
43+
pip install -r requirements.txt
44+
pip install -r requirements/tests.txt
4645
4746
- name: Running tests
4847
# Make sure to pass max-parallel to --splits

.github/workflows/gh-pages.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: Deploy Documentation
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
6-
- dev
7+
- dev
78

89
jobs:
910
deploy-docs:
@@ -27,7 +28,7 @@ jobs:
2728
CACHE_NUMBER: 0 # increase value -> force reset cache
2829
with:
2930
path: ~/conda_pkgs_dir
30-
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('**/conda_requirements.txt') }}
31+
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements.txt') }}
3132

3233
- name: Set up conda/mamba
3334
uses: conda-incubator/setup-miniconda@v2
@@ -43,15 +44,13 @@ jobs:
4344

4445
- name: Install dependencies (conda)
4546
run: |
46-
mamba install --file requirements/doc_requirements.txt
47-
pip install -r requirements/pip_requirements.txt
48-
pip install -e .
47+
mamba install --file requirements/docs.txt
48+
pip install -r requirements.txt
4949
5050
# Build the documentation
5151
- name: Build the documentation
5252
run: |
5353
cd docs
54-
python examples_linker.py
5554
make html
5655
5756
# Push the documentation's HTML to github-pages

.github/workflows/release-notes.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release notes
1+
name: Release Notes
22

33
on:
44
push:

.github/workflows/test-duration-logger.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,16 @@ jobs:
2929
# This path is specific to Ubuntu
3030
path: ~/.cache/pip
3131
# Look to see if there is a cache hit for the corresponding requirements file
32-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/pip_requirements.txt') }}
32+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
3333
restore-keys: |
3434
${{ runner.os }}-pip-
3535
${{ runner.os }}-
3636
3737
- name: Install dependencies (pip)
3838
run: |
3939
pip install wheel
40-
pip install -r requirements/pip_requirements.txt
41-
pip install -r requirements/test_requirements.txt
42-
# Install porespy from the checked-out branch
43-
pip install -e . --no-deps
40+
pip install -r requirements.txt
41+
pip install -r requirements/tests.txt
4442
4543
- name: Running unit tests and examples
4644
run: |

.github/workflows/tests.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Tests
22

3-
on: [push]
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- release
48

59
jobs:
610
build:
@@ -12,10 +16,10 @@ jobs:
1216

1317
strategy:
1418
fail-fast: false
15-
max-parallel: 6
19+
max-parallel: 9
1620
matrix:
1721
# Add '3.10' to the list once #611 is addressed
18-
python-version: ['3.8', '3.9']
22+
python-version: ['3.8', '3.9', '3.10']
1923
os: [ubuntu-latest, macos-latest, windows-latest]
2024
include:
2125
- os: ubuntu-latest
@@ -30,7 +34,7 @@ jobs:
3034
uses: actions/cache@v2
3135
with:
3236
path: ${{ matrix.path }}
33-
key: ${{ runner.os }}-pip-${{ hashFiles('**/pip_requirements.txt') }}
37+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
3438
restore-keys: |
3539
${{ runner.os }}-pip-
3640
@@ -44,10 +48,8 @@ jobs:
4448
- name: Install dependencies (pip)
4549
run: |
4650
pip install \
47-
-r requirements/pip_requirements.txt \
48-
-r requirements/test_requirements.txt
49-
# Install porespy from the checked-out branch
50-
pip install -e . --no-deps
51+
-r requirements.txt \
52+
-r requirements/tests.txt
5153
5254
# TODO: uncomment this step when integration tests are fixed
5355
# - name: Disable numba JIT for codecov to include jitted methods

.github/workflows/utils.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function bump_version {
8888
local bump_type=$1
8989
local version_loc=$2
9090
local version=$(get_version $version_loc)
91-
bump2version --current-version $version $bump_type $version_loc
91+
bump2version --current-version $version $bump_type $version_loc --verbose
9292
}
9393

9494

.github/workflows/verify-pip-installation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Verify pip-installability
22

3-
on: [push]
3+
on: [workflow_dispatch]
44

55
jobs:
66
deploy:

README.md

-4
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ and install it using the following PIP command:
7474
For information about contributing, refer to the [contributors
7575
guide](https://github.com/PMEAL/porespy/blob/dev/CONTRIBUTING.md)
7676

77-
# Stay Informed
78-
79-
It's surprizingly hard to communicate with our users, since Github doesn't allow sending out email newsletters or announcements. To address this gap, we have created a [Substack channel](https://porespy.substack.com/p/coming-soon?r=e02s8&utm_campaign=post&utm_medium=web&utm_source=copy), where you can subscribe to our feed to receive periodic news about important events and updates.
80-
8177
# Acknowledgements
8278

8379
PoreSpy is grateful to [CANARIE](https://canarie.ca) for their generous funding over the past few years. We would also like to acknowledge the support of [NSERC of Canada](https://www.nserc-crsng.gc.ca/) for funding many of the student that have contributed to PoreSpy since it's inception in 2014.

codecov.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ coverage:
1010
project:
1111
default:
1212
target: auto
13-
threshold: 0.5%
13+
threshold: 2%
1414
branches: null
1515

1616
patch:
1717
default:
1818
target: auto
19-
threshold: 0.5%
19+
threshold: 2%
2020
branches: null
2121

2222
comment:

docs/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ help:
4040
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
4141

4242
clean:
43-
-rm -rf $(BUILDDIR)/*
43+
rm -rf $(BUILDDIR)/
44+
rm -rf examples/
4445
find . -name "generated" | xargs rm -rf
4546

4647
html:

0 commit comments

Comments
 (0)