Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add python 3.8/3.9 support, drop python 2.7/3.4 support
Releases are now automated with python-semantic-release BREAKING CHANGE: Python 2.7 and 3.4 support have been dropped
- Loading branch information
Showing
19 changed files
with
720 additions
and
646 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
name: ci | ||
on: | ||
push: ~ | ||
pull_request: ~ | ||
jobs: | ||
build: | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ 3.5, 3.6, 3.7, 3.8, 3.9, pypy-3.6, pypy-3.7 ] | ||
python-regex: [ True, False ] | ||
|
||
steps: | ||
- name: Setup python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Git User config | ||
run: | | ||
git config --global user.email "action@github.com" | ||
git config --global user.name "github-actions" | ||
- name: Install Dependencies | ||
run: | | ||
pip install -e .[dev,test] | ||
pip install coveralls | ||
- name: Install regex | ||
run: | | ||
pip install regex | ||
if: ${{ matrix.python-regex }} | ||
|
||
- run: pylint rebulk | ||
if: matrix.python-version != '3.9' | ||
|
||
- run: coverage run --source=rebulk setup.py test | ||
|
||
- run: python setup.py build | ||
|
||
- name: Coveralls | ||
run: coveralls | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
|
||
release: | ||
if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }} | ||
needs: build | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ 3.8 ] | ||
|
||
steps: | ||
- name: Setup python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Git User config | ||
run: | | ||
git config --global user.email "action@github.com" | ||
git config --global user.name "github-actions" | ||
- name: Install Dependencies | ||
run: pip install -e .[dev,test] | ||
|
||
- name: Install python-semantic-release | ||
run: pip install python-semantic-release | ||
|
||
- name: Publish release | ||
run: semantic-release -v DEBUG publish | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
|
||
- name: Merge master to develop | ||
# uses: robotology/gh-action-nightly-merge@v1.3.1 # Wait PR merge https://github.com/robotology/gh-action-nightly-merge/pull/5 | ||
uses: Toilal/gh-action-nightly-merge@master | ||
with: | ||
stable_branch: 'master' | ||
development_branch: 'develop' | ||
allow_ff: true | ||
user_name: github-actions | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Changelog | ||
========= | ||
|
||
<!--next-version-placeholder--> |
Oops, something went wrong.