Skip to content

Commit

Permalink
build: Add GitHub actions
Browse files Browse the repository at this point in the history
This commit introduces two new GH actions

- test will run on any push and will ensure that all checks in tox run
  without issue.
- bump-version is triggered manually. It will bump the version number,
  tag the repo, and generate a changelog file.
  • Loading branch information
keelerm84 committed Dec 27, 2020
1 parent 33c52f1 commit cb60405
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
titleOnly: true
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Bump version

on: workflow_dispatch

jobs:
bump-version:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Python Semantic Release
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test

on: [push]

jobs:
test:
runs-on: ubuntu-latest

strategy:
max-parallel: 5
matrix:
python-version: [3.6, 3.9]

steps:
- 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
pip install tox
- name: Test with tox
run: tox -e py
2 changes: 0 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,3 @@ in the format February 2019.

This project is licensed under the MIT License - see the [LICENSE](LICENSE)
file for details


7 changes: 7 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[semantic_release]
version_variable = setup.py:__version__
branch = master
changelog_file = docs/CHANGELOG.md

upload_to_pypi = false
upload_to_release = false

0 comments on commit cb60405

Please sign in to comment.