🚀 github actions for moban, pypi release and automatically extract contributors
This commit is contained in:
parent
d739ae7886
commit
9260b3e9d6
|
@ -3,10 +3,9 @@ With your PR, here is a check list:
|
|||
- [ ] Has Test cases written
|
||||
- [ ] Has all code lines tested
|
||||
- [ ] Has `make format` been run?
|
||||
- [ ] Has `moban` been run?
|
||||
- [ ] Please update CHANGELOG.yml(not CHANGELOG.rst)
|
||||
- [ ] Passes all Travis CI builds
|
||||
- [ ] Has fair amount of documentation if your change is complex
|
||||
- [ ] run 'make format' so as to confirm the pyexcel organisation's coding style
|
||||
- [ ] Please update CHANGELOG.rst
|
||||
- [ ] Please add yourself to CONTRIBUTORS.rst
|
||||
- [ ] Please add yourself to 'contributors' section of pyexcel-ods.yml (if not found, please use CONTRIBUTORS.rst)
|
||||
- [ ] Agree on NEW BSD License for your contribution
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
on: [push]
|
||||
|
||||
jobs:
|
||||
run_moban:
|
||||
runs-on: ubuntu-latest
|
||||
name: synchronize templates via moban
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: '3.7'
|
||||
- name: check changes
|
||||
run: |
|
||||
pip install moban gitfs2 pypifs
|
||||
moban
|
||||
git status
|
||||
git diff --exit-code
|
||||
- name: Auto-commit
|
||||
if: failure()
|
||||
uses: docker://cdssnc/auto-commit-github-action
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
args: This is an auto-commit, updating project meta data, such as changelog.rst, contributors.rst
|
|
@ -0,0 +1,26 @@
|
|||
name: Upload Python Package
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install setuptools wheel twine
|
||||
- name: Build and publish
|
||||
env:
|
||||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||
run: |
|
||||
python setup.py sdist bdist_wheel
|
||||
twine upload dist/*
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
3 contributors
|
||||
================================================================================
|
||||
|
||||
In alphabetical order:
|
||||
|
||||
* `Azamat H. Hackimov <https://api.github.com/users/winterheart>`_
|
||||
* `John Vandenberg <https://api.github.com/users/jayvdb>`_
|
||||
* `Mateusz Konieczny <https://api.github.com/users/matkoniecz>`_
|
17
Makefile
17
Makefile
|
@ -1,12 +1,19 @@
|
|||
all: test
|
||||
|
||||
test:
|
||||
test: lint
|
||||
bash test.sh
|
||||
|
||||
format:
|
||||
isort -y $(find pyexcel_ods -name "*.py"|xargs echo) $(find tests -name "*.py"|xargs echo)
|
||||
black -l 79 pyexcel_ods
|
||||
black -l 79 tests
|
||||
install_test:
|
||||
pip install -r tests/requirements.txt
|
||||
|
||||
git-diff-check:
|
||||
git diff --exit-code
|
||||
|
||||
lint:
|
||||
bash lint.sh
|
||||
|
||||
format:
|
||||
bash format.sh
|
||||
|
||||
git-diff-check:
|
||||
git diff --exit-code
|
||||
|
|
16
README.rst
16
README.rst
|
@ -367,22 +367,6 @@ Please run::
|
|||
so as to beautify your code otherwise travis-ci may fail your unit test.
|
||||
|
||||
|
||||
And make sure you would have run moban command
|
||||
---------------------------------------------------------
|
||||
|
||||
Additional steps are required:
|
||||
|
||||
#. pip install moban
|
||||
#. make your changes in `.moban.d` directory, then issue command `moban`
|
||||
#. moban
|
||||
|
||||
otherwise travis-ci may also fail your unit test.
|
||||
|
||||
What is .moban.d
|
||||
---------------------------------
|
||||
|
||||
`.moban.d` stores the specific meta data for the library.
|
||||
|
||||
Credits
|
||||
================================================================================
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ DESCRIPTION = (
|
|||
|
||||
project = 'pyexcel-ods'
|
||||
copyright = '2015-2020 Onni Software Ltd.'
|
||||
author = 'C.W.'
|
||||
author = 'chfw'
|
||||
# The short X.Y version
|
||||
version = '0.5.6'
|
||||
# The full version, including alpha/beta/rc tags
|
||||
|
|
Loading…
Reference in New Issue