Skip to content

Commit

Permalink
feat: Add python 3.8/3.9 support, drop python 2.7/3.4 support
Browse files Browse the repository at this point in the history
Releases are now automated with python-semantic-release

BREAKING CHANGE: Python 2.7 and 3.4 support have been dropped
  • Loading branch information
Toilal committed Dec 23, 2020
1 parent d758077 commit 9d1d1dd
Show file tree
Hide file tree
Showing 19 changed files with 720 additions and 646 deletions.
100 changes: 100 additions & 0 deletions .github/workflows/ci.yml
@@ -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 }}
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,4 @@
Changelog
=========

<!--next-version-placeholder-->

0 comments on commit 9d1d1dd

Please sign in to comment.