mirror of
https://github.com/ejwa/gitinspector.git
synced 2025-03-26 02:01:27 +01:00
Automating release
This commit is contained in:
parent
9956e7684e
commit
ec67defc58
5 changed files with 79 additions and 14 deletions
13
.github/workflows/auto-merge.yml
vendored
Normal file
13
.github/workflows/auto-merge.yml
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
name: auto-merge
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
auto-merge:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ahmadnassri/action-dependabot-auto-merge@v2
|
||||
with:
|
||||
github-token: ${{ secrets.mytoken }}
|
17
.github/workflows/python-package.yml
vendored
17
.github/workflows/python-package.yml
vendored
|
@ -18,30 +18,33 @@ jobs:
|
|||
python-version: [3.6, 3.7, 3.8, 3.9]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
make lint
|
||||
run: make lint
|
||||
|
||||
- name: Test with pytest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||
run: |
|
||||
make test-coverage-report
|
||||
run: make test-coverage-report
|
||||
|
||||
coveralls_finish:
|
||||
coverage:
|
||||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Coveralls Finished
|
||||
- name: Send Results to Coveralls
|
||||
uses: coverallsapp/github-action@master
|
||||
env:
|
||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||
|
|
36
.github/workflows/release.yml
vendored
Normal file
36
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip wheel twine
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
|
||||
- name: Test
|
||||
run: make dist
|
||||
|
||||
- name: Release
|
||||
id: release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: dist/*
|
||||
fail_on_unmatched_files: true
|
||||
prerelease: ${{ endsWith(github.ref, 'dev') || endsWith(github.ref, 'pre') }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
14
Makefile
14
Makefile
|
@ -59,7 +59,19 @@ test-coverage-report: test-coverage ## Report coverage to Coveralls
|
|||
release: dist ## package and upload a release
|
||||
twine upload dist/*
|
||||
|
||||
dist: clean requirements ## builds source and wheel package
|
||||
tag-version:
|
||||
@export VERSION_TAG=`python3 -c "from gitinspector.version import __version__; print(__version__)"` \
|
||||
&& git tag v$$VERSION_TAG
|
||||
|
||||
untag-version:
|
||||
@export VERSION_TAG=`python3 -c "from gitinspector.version import __version__; print(__version__)"` \
|
||||
&& git tag -d v$$VERSION_TAG
|
||||
|
||||
push-tagged-version: tag-version
|
||||
@export VERSION_TAG=`python3 -c "from gitinspector.version import __version__; print(__version__)"` \
|
||||
&& git push origin v$$VERSION_TAG
|
||||
|
||||
dist: clean ## builds source and wheel package
|
||||
python3 setup.py sdist
|
||||
python3 setup.py bdist_wheel
|
||||
ls -l dist
|
||||
|
|
|
@ -11,21 +11,21 @@
|
|||
-i https://pypi.org/simple
|
||||
appdirs==1.4.4
|
||||
attrs==20.3.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
|
||||
autopep8==1.5.5
|
||||
black==20.8b1
|
||||
bleach==3.3.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
|
||||
certifi==2020.12.5
|
||||
chardet==4.0.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
|
||||
click==7.1.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
|
||||
colorama==0.4.4; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
|
||||
coverage==5.4
|
||||
coveralls==3.0.0
|
||||
coverage==5.5
|
||||
coveralls==3.0.1
|
||||
docopt==0.6.2
|
||||
docutils==0.16; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
|
||||
flake8==3.8.4
|
||||
idna==2.10; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
|
||||
importlib-metadata==3.7.2; python_version >= '3.6'
|
||||
iniconfig==1.1.1
|
||||
keyring==22.3.0; python_version >= '3.6'
|
||||
keyring==23.0.0; python_version >= '3.6'
|
||||
mccabe==0.6.1
|
||||
mypy-extensions==0.4.3
|
||||
packaging==20.9; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
|
||||
|
@ -35,7 +35,7 @@ pluggy==0.13.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2
|
|||
py==1.10.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
|
||||
pycodestyle==2.6.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
|
||||
pyflakes==2.2.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
|
||||
pygments==2.8.0; python_version >= '3.5'
|
||||
pygments==2.8.1; python_version >= '3.5'
|
||||
pyparsing==2.4.7; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'
|
||||
pytest==6.2.2
|
||||
readme-renderer==29.0
|
||||
|
@ -45,9 +45,10 @@ requests==2.25.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3
|
|||
rfc3986==1.4.0
|
||||
six==1.15.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
|
||||
toml==0.10.2; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'
|
||||
tqdm==4.58.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
|
||||
tqdm==4.59.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
|
||||
twine==3.3.0
|
||||
typed-ast==1.4.2
|
||||
typing-extensions==3.7.4.3
|
||||
urllib3==1.26.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'
|
||||
webencodings==0.5.1
|
||||
zipp==3.4.1; python_version >= '3.6'
|
||||
|
|
Loading…
Add table
Reference in a new issue