Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bpaulin authored Jun 9, 2020
1 parent 2fcec21 commit b42d472
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: CI/CD
name: build

on: push

jobs:
deploy:

build:
runs-on: ubuntu-latest

steps:
Expand All @@ -26,10 +25,18 @@ jobs:
- name: Test and build
run: |
pip install -e .
pytest
pytest --cov-report=xml
black --check .
python setup.py sdist bdist_wheel
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.0.7
if: github.ref == 'refs/heads/master'
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests

- name: Publish on test.pypi
env:
TWINE_USERNAME: __token__
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
brownpaperbag
=============

[![PyPI - version](https://img.shields.io/pypi/v/brownpaperbag.svg)](https://pypi.python.org/pypi/brownpaperbag) ![GitHub](https://img.shields.io/github/license/bpaulin/brownpaperbag.svg) ![PyPI - Downloads](https://img.shields.io/pypi/dm/brownpaperbag.svg)

[![Build](https://img.shields.io/travis/bpaulin/brownpaperbag.svg)](https://travis-ci.org/bpaulin/brownpaperbag) [![Updates](https://pyup.io/repos/github/bpaulin/brownpaperbag/shield.svg)](https://pyup.io/repos/github/bpaulin/brownpaperbag/)
[![PyPI - version](https://img.shields.io/pypi/v/brownpaperbag.svg)](https://pypi.python.org/pypi/brownpaperbag)
![](https://github.com/bpaulin/brownpaperbag/workflows/build/badge.svg)
[![CodeFactor](https://www.codefactor.io/repository/github/bpaulin/brownpaperbag/badge)](https://www.codefactor.io/repository/github/bpaulin/brownpaperbag)
[![codecov](https://codecov.io/gh/bpaulin/brownpaperbag/branch/master/graph/badge.svg)](https://codecov.io/gh/bpaulin/brownpaperbag)

> But you try and tell the young people today that...
Expand Down
6 changes: 6 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ replace = {new_version}
[bumpversion:file:brownpaperbag/__init__.py]
search = __version__ = '{current_version}'
replace = {new_version}

[run]
omit = tests/*

[tool:pytest]
addopts = --cov --cov-config=setup.cfg

0 comments on commit b42d472

Please sign in to comment.