Skip to content

Commit

Permalink
Update actions/codecov.yml/setup.py [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-sadeghi committed Aug 19, 2020
1 parent 81ab188 commit 470cd6e
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 22 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Bump version
name: ⏫ Version No.

on:
push:
Expand All @@ -24,9 +24,9 @@ jobs:
- name: Set env variables
run: |
git fetch --all --tags
# echo ::set-env name=TAG::$(git describe --tags `git rev-list --tags --max-count=1`)
echo ::set-env name=TAG::$(git tag | sort -V | tail -1)
echo ::set-env name=VER::$(python -c "import sys; sys.path.append('./openpnm'); from __version__ import __version__; print(__version__)")
# echo ::set-env name=TAG::$(git describe --tags `git rev-list --tags --max-count=1`)
- name: Install dependencies
run: |
Expand Down Expand Up @@ -54,12 +54,15 @@ jobs:
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Bump version number [ci skip]" -a
REPOSITORY=${INPUT_REPOSITORY:-$GITHUB_REPOSITORY}
remote_repo="https://${GITHUB_ACTOR}:${{ secrets.PUSH_ACTION_TOKEN }}@github.com/${REPOSITORY}.git"
git push "${remote_repo}" release:release release:dev --force
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'release'
# - name: Push changes
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: 'release'

- name: Push new tag
uses: anothrNick/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-min.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Minimal
name: 🐤 Minimal

on: [push]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-tags.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Clean up tags
name: 🔧 Clean up tags

on: push

Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish 🐍 📦 to PyPI
name: 🐍 Deploy to PyPI

on:
push:
Expand All @@ -12,6 +12,8 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
ref: release # the production branch name (for proper version #)

- name: Set up Python
uses: actions/setup-python@v2
Expand Down Expand Up @@ -51,13 +53,13 @@ jobs:
password: ${{ secrets.PYPI_TOKEN }}
skip_existing: true

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

- name: Delete tag if doesn't match with version
if: contains(env.TAG_MISMATCH, 'true')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release Notes
name: 📝 Release notes

on:
push:
Expand Down
4 changes: 2 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ coverage:
project:
default:
target: auto
threshold: 0.1%
threshold: 0.5%
branches: null

patch:
default:
target: auto
threshold: 0.1%
threshold: 0.5%
branches: null

comment:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@
],
author='OpenPNM Team',
author_email='[email protected]',
download_url='https://github.com/pmeal/OpenPNM/',
download_url='https://github.com/PMEAL/OpenPNM/',
url='http://openpnm.org',
project_urls={
'Documentation': 'https://openpnm.readthedocs.io/en/master/',
'Documentation': 'https://openpnm.readthedocs.io/en/dev/',
'Source': 'https://github.com/PMEAL/OpenPNM',
'Tracker': 'https://github.com/PMEAL/OpenPNM/issues',
},
Expand Down

0 comments on commit 470cd6e

Please sign in to comment.