Skip to content

Commit 717eb8b

Browse files
author
Hugo Barrera
authored
Merge pull request #82 from WhyNotHugo/ci-cleanup
Various cleansup in CI and alike
2 parents 7e64d74 + 8ef3ed7 commit 717eb8b

File tree

5 files changed

+30
-28
lines changed

5 files changed

+30
-28
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,21 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-18.04, macOS-10.14]
11-
python: [ '3.5', '3.6', '3.7' ]
12-
extras: [ "", "[images]" ]
13-
name: python${{ matrix.python }} on ${{ matrix.os }} ${{ matrix.extras }}
11+
python: [ '3.6', '3.7', '3.8' ]
12+
variant: [ "py", "py-images" ]
13+
name: python${{ matrix.python }} on ${{ matrix.os }} ${{ matrix.variant }}
1414
steps:
15-
- uses: actions/checkout@master
16-
- uses: actions/setup-python@v1
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-python@v2
1717
with:
1818
python-version: ${{ matrix.python }}
19-
architecture: x64
20-
- name: Install test dependencies
21-
run: |
22-
pip install --upgrade --no-cache-dir pipenv
23-
pipenv install --dev
24-
pipenv install .${{ matrix.extras }}
19+
- name: Install test dependency
20+
run: pip install tox codecov
2521
- name: Run tests
26-
run: pipenv run pytest
22+
run: tox
23+
env:
24+
TOXENV: ${{ matrix.variant }}
2725
- name: Report coverage
28-
run: pipenv run codecov
26+
run: codecov
2927
env:
3028
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Pipfile

Lines changed: 0 additions & 13 deletions
This file was deleted.

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Please report any bugs at https://github.com/WhyNotHugo/python-barcode/issues
3535
Features
3636
--------
3737

38-
- Works on Python 3.5 to 3.8
38+
- Works on Python 3.6 to 3.9
3939
- No visualiser (just use your browser)
4040
- Generate barcodes as SVG files.
4141
- Generate barcodes as images (png, jpeg, etc). Requires Pillow.

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
"Operating System :: OS Independent",
2424
"Programming Language :: Python",
2525
"Programming Language :: Python :: 3",
26-
"Programming Language :: Python :: 3.5",
2726
"Programming Language :: Python :: 3.6",
2827
"Programming Language :: Python :: 3.7",
28+
"Programming Language :: Python :: 3.8",
29+
"Programming Language :: Python :: 3.9",
2930
"Topic :: Multimedia :: Graphics",
3031
"Topic :: Software Development :: Libraries :: Python Modules",
3132
],

tox.ini

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[tox]
2+
envlist = {py36,py37,py38,py39}{,-images}
3+
skip_missing_interpreters = True
4+
5+
[testenv]
6+
deps =
7+
pytest
8+
pytest-cov
9+
images: Pillow
10+
commands = pytest --cov barcode
11+
usedevelop = True
12+
13+
[flake8]
14+
exclude=.tox,build,.eggs
15+
application-import-names=barcode,tests
16+
import-order-style=smarkets

0 commit comments

Comments
 (0)