Skip to content

Commit

Permalink
fix build and add publishing to pypi upon tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-bagerard committed Mar 18, 2021
1 parent bc94728 commit 06fcd70
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,22 @@ jobs:
COVERALLS_SERVICE_NAME: github
if: ${{ matrix.python-version == 3.7 }}
run: coveralls

build-n-publish:
runs-on: ubuntu-latest
needs: [linting, test]
if: github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: build wheel
run: |
pip install wheel
python setup.py sdist bdist_wheel
- name: publish pypi
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_token }}
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Operation
---------

The plugin will go through all files, identify the tests directories, and validate method
starting with "test_" against your validator.
starting with `test_` against your validator.


Changes
Expand Down
2 changes: 1 addition & 1 deletion flake8_test_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re

# metadata
__version__ = "0.1.0"
__version__ = "0.1.1"
CODE_PREFIX = "TN"

# constants
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def get_long_description():
version=get_version(),
description="Invalid test name checker, plugin for flake8",
long_description=get_long_description(),
long_description_content_type="text/x-rst",
keywords="flake8 test name convention",
maintainer="Bastien Gerard",
maintainer_email="[email protected]",
Expand Down

0 comments on commit 06fcd70

Please sign in to comment.