Skip to content

Commit

Permalink
Merge pull request #82 from WhyNotHugo/ci-cleanup
Browse files Browse the repository at this point in the history
Various cleansup in CI and alike
  • Loading branch information
Hugo Barrera authored Aug 15, 2020
2 parents 7e64d74 + 8ef3ed7 commit 717eb8b
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 28 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,21 @@ jobs:
strategy:
matrix:
os: [ubuntu-18.04, macOS-10.14]
python: [ '3.5', '3.6', '3.7' ]
extras: [ "", "[images]" ]
name: python${{ matrix.python }} on ${{ matrix.os }} ${{ matrix.extras }}
python: [ '3.6', '3.7', '3.8' ]
variant: [ "py", "py-images" ]
name: python${{ matrix.python }} on ${{ matrix.os }} ${{ matrix.variant }}
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v1
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Install test dependencies
run: |
pip install --upgrade --no-cache-dir pipenv
pipenv install --dev
pipenv install .${{ matrix.extras }}
- name: Install test dependency
run: pip install tox codecov
- name: Run tests
run: pipenv run pytest
run: tox
env:
TOXENV: ${{ matrix.variant }}
- name: Report coverage
run: pipenv run codecov
run: codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
13 changes: 0 additions & 13 deletions Pipfile

This file was deleted.

2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Please report any bugs at https://github.com/WhyNotHugo/python-barcode/issues
Features
--------

- Works on Python 3.5 to 3.8
- Works on Python 3.6 to 3.9
- No visualiser (just use your browser)
- Generate barcodes as SVG files.
- Generate barcodes as images (png, jpeg, etc). Requires Pillow.
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Multimedia :: Graphics",
"Topic :: Software Development :: Libraries :: Python Modules",
],
Expand Down
16 changes: 16 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[tox]
envlist = {py36,py37,py38,py39}{,-images}
skip_missing_interpreters = True

[testenv]
deps =
pytest
pytest-cov
images: Pillow
commands = pytest --cov barcode
usedevelop = True

[flake8]
exclude=.tox,build,.eggs
application-import-names=barcode,tests
import-order-style=smarkets

0 comments on commit 717eb8b

Please sign in to comment.