Skip to content

Commit 17ccb87

Browse files
authored
Merge dev into release for V3 #major
2 parents a9f39cb + 8645bb5 commit 17ccb87

File tree

820 files changed

+177555
-722859
lines changed

Some content is hidden

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

820 files changed

+177555
-722859
lines changed

.coveragerc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ source =
66
[report]
77

88
omit =
9-
tests/*
10-
scripts/*
11-
examples/*
129
*/__init__.py
13-
openpnm/__version__.py
10+
docs/*
1411
example.py
12+
examples/*
13+
openpnm/_skgraph/visualization/*
14+
openpnm/solvers/_petsc.py
15+
openpnm/__version__.py
16+
openpnm/visualization/*
17+
scripts/*
1518
setup.py
19+
tests/*
1620

1721
exclude_lines =
1822
pragma: no cover
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Bump Version (dev)
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
8+
jobs:
9+
build:
10+
name: Bump version
11+
runs-on: ubuntu-latest
12+
13+
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
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: 3.8
23+
24+
- name: Set env variables
25+
run: |
26+
# The next line is very important, otherwise the line after triggers
27+
# git to track the permission change, which breaks bump2version API (needs clean git folder)
28+
git config core.filemode false
29+
chmod +x .github/workflows/utils.sh
30+
echo "VERSION_FILE=openpnm/__version__.py" >> $GITHUB_ENV
31+
echo "SETUP_CFG_FILE=setup.cfg" >> $GITHUB_ENV
32+
echo "${{ github.event.head_commit.message }}"
33+
34+
- name: Install dependencies
35+
run: |
36+
pip install bump2version
37+
38+
- name: Bump version (build)
39+
run: |
40+
source .github/workflows/utils.sh
41+
bump_version build $VERSION_FILE
42+
# Note that we don't want to create a new tag for "builds"
43+
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"
48+
49+
git config --local user.email "action@github.com"
50+
git config --local user.name "GitHub Action"
51+
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

.github/workflows/bump-version.yml

Lines changed: 7 additions & 3 deletions
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:
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Python
2020
uses: actions/setup-python@v2
2121
with:
22-
python-version: 3.7
22+
python-version: 3.8
2323

2424
- name: Set env variables
2525
run: |
@@ -68,7 +68,7 @@ jobs:
6868
git config --local user.email "action@github.com"
6969
git config --local user.name "GitHub Action"
7070
71-
# commit version bump to release
71+
# Commit version bump to release
7272
git commit -m "Bump version number" -a
7373
git push "${remote_repo}" release
7474
@@ -85,6 +85,10 @@ jobs:
8585
pr_allow_empty: true # Creates pull request even if there are no changes
8686
github_token: ${{ secrets.GITHUB_TOKEN }}
8787

88+
- name: Trim the 4th digit from the tag
89+
run:
90+
echo "TAG_NEW=${TAG_NEW%.dev?}" >> $GITHUB_ENV
91+
8892
- name: Create new tag
8993
run: |
9094
REPOSITORY=${INPUT_REPOSITORY:-$GITHUB_REPOSITORY}

.github/workflows/ci-macos.yml

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

.github/workflows/ci-min.yml

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

.github/workflows/ci-ubuntu.yml

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

.github/workflows/ci-windows.yml

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

.github/workflows/cleanup-tags.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Clean Up Tags
22

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

55
jobs:
66
deploy:

0 commit comments

Comments
 (0)