Skip to content

Commit 470cd6e

Browse files
committed
Update actions/codecov.yml/setup.py [ci skip]
1 parent 81ab188 commit 470cd6e

7 files changed

+27
-22
lines changed

.github/workflows/bump-version.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Bump version
1+
name: ⏫ Version No.
22

33
on:
44
push:
@@ -24,9 +24,9 @@ jobs:
2424
- name: Set env variables
2525
run: |
2626
git fetch --all --tags
27-
# echo ::set-env name=TAG::$(git describe --tags `git rev-list --tags --max-count=1`)
2827
echo ::set-env name=TAG::$(git tag | sort -V | tail -1)
2928
echo ::set-env name=VER::$(python -c "import sys; sys.path.append('./openpnm'); from __version__ import __version__; print(__version__)")
29+
# echo ::set-env name=TAG::$(git describe --tags `git rev-list --tags --max-count=1`)
3030
3131
- name: Install dependencies
3232
run: |
@@ -54,12 +54,15 @@ jobs:
5454
git config --local user.email "[email protected]"
5555
git config --local user.name "GitHub Action"
5656
git commit -m "Bump version number [ci skip]" -a
57+
REPOSITORY=${INPUT_REPOSITORY:-$GITHUB_REPOSITORY}
58+
remote_repo="https://${GITHUB_ACTOR}:${{ secrets.PUSH_ACTION_TOKEN }}@github.com/${REPOSITORY}.git"
59+
git push "${remote_repo}" release:release release:dev --force
5760
58-
- name: Push changes
59-
uses: ad-m/github-push-action@master
60-
with:
61-
github_token: ${{ secrets.GITHUB_TOKEN }}
62-
branch: 'release'
61+
# - name: Push changes
62+
# uses: ad-m/github-push-action@master
63+
# with:
64+
# github_token: ${{ secrets.GITHUB_TOKEN }}
65+
# branch: 'release'
6366

6467
- name: Push new tag
6568
uses: anothrNick/[email protected]

.github/workflows/ci-min.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Minimal
1+
name: 🐤 Minimal
22

33
on: [push]
44

.github/workflows/cleanup-tags.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Clean up tags
1+
name: 🔧 Clean up tags
22

33
on: push
44

.github/workflows/publish-to-pypi.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish 🐍 📦 to PyPI
1+
name: 🐍 Deploy to PyPI
22

33
on:
44
push:
@@ -12,6 +12,8 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v2
15+
with:
16+
ref: release # the production branch name (for proper version #)
1517

1618
- name: Set up Python
1719
uses: actions/setup-python@v2
@@ -51,13 +53,13 @@ jobs:
5153
password: ${{ secrets.PYPI_TOKEN }}
5254
skip_existing: true
5355

54-
- name: Publish distribution 📦 to TestPyPI
55-
if: startsWith(github.event.ref, 'refs/tags') && contains(env.TAG_MISMATCH, 'false')
56-
uses: pypa/gh-action-pypi-publish@master
57-
with:
58-
user: __token__
59-
password: ${{ secrets.TESTPYPI_TOKEN }}
60-
repository_url: https://test.pypi.org/legacy/
56+
# - name: Publish distribution 📦 to TestPyPI
57+
# if: startsWith(github.event.ref, 'refs/tags') && contains(env.TAG_MISMATCH, 'false')
58+
# uses: pypa/gh-action-pypi-publish@master
59+
# with:
60+
# user: __token__
61+
# password: ${{ secrets.TESTPYPI_TOKEN }}
62+
# repository_url: https://test.pypi.org/legacy/
6163

6264
- name: Delete tag if doesn't match with version
6365
if: contains(env.TAG_MISMATCH, 'true')

.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:

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.1%
13+
threshold: 0.5%
1414
branches: null
1515

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

2222
comment:

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@
7979
],
8080
author='OpenPNM Team',
8181
author_email='[email protected]',
82-
download_url='https://github.com/pmeal/OpenPNM/',
82+
download_url='https://github.com/PMEAL/OpenPNM/',
8383
url='http://openpnm.org',
8484
project_urls={
85-
'Documentation': 'https://openpnm.readthedocs.io/en/master/',
85+
'Documentation': 'https://openpnm.readthedocs.io/en/dev/',
8686
'Source': 'https://github.com/PMEAL/OpenPNM',
8787
'Tracker': 'https://github.com/PMEAL/OpenPNM/issues',
8888
},

0 commit comments

Comments
 (0)