Skip to content

Commit 6fbad96

Browse files
committed
Explicitely give the python version when installing using pipenv in the CI
1 parent 0ded910 commit 6fbad96

File tree

5 files changed

+13
-17
lines changed

5 files changed

+13
-17
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
max-parallel: 4
1111
matrix:
12-
python-version: [3.5, 3.6, 3.7]
12+
python-version: [3.6, 3.7, 3.8]
1313

1414
steps:
1515
- uses: actions/checkout@v2
@@ -20,21 +20,13 @@ jobs:
2020
- name: Install pipenv
2121
uses: dschep/install-pipenv-action@v1
2222
- name: Install dependencies
23-
uses: VaultVulp/[email protected]
24-
with:
25-
command: install --dev
23+
run: pipenv install --dev --python ${{ matrix.python-version }}
2624
- name: Run linter
27-
uses: VaultVulp/[email protected]
28-
with:
29-
command: run lint
30-
- name: Run type checker
31-
uses: VaultVulp/[email protected]
32-
with:
33-
command: run type
25+
run: pipenv run lint
26+
- name: Run type
27+
run: pipenv run type
3428
- name: Run tests
35-
uses: VaultVulp/[email protected]
36-
with:
37-
command: run test --cov=evasdk --cov-branch --cov-report=xml
29+
run: pipenv run test --cov=evasdk --cov-branch --cov-report=xml
3830
- name: Upload to codecov
3931
uses: codecov/[email protected]
4032
with:

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v1
12+
- uses: actions/checkout@v2
1313
- name: Set up Python
14-
uses: actions/setup-python@v1
14+
uses: actions/setup-python@v2
1515
with:
1616
python-version: '3.x'
1717
- name: Install dependencies
@@ -27,7 +27,7 @@ jobs:
2727
sed -i 's/%VERSION%/'$VERSION'/' evasdk/version.py
2828
python setup.py sdist bdist_wheel
2929
- name: Publish a Python distribution to PyPI
30-
uses: pypa/gh-action-pypi-publish@master
30+
uses: pypa/gh-action-pypi-publish@v1.3.0
3131
with:
3232
user: __token__
3333
password: ${{ secrets.PYPI_TOKEN }}

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ name = "pypi"
77
requests = "*"
88
websockets = "*"
99
zeroconf = "==0.27.1"
10+
dataclasses = "*"
1011

1112
[dev-packages]
1213
flake8 = "*"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ __* This SDK is currently in beta__
2222

2323
__Requires Python 3, not compatible with Python 2__
2424

25+
We support Python `3.6` and later.
26+
2527
### Pip
2628

2729
Make sure you have Python3 and pip installed, then run the following command:

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
'requests',
2020
'websockets',
2121
'zeroconf',
22+
'dataclasses',
2223
],
2324
classifiers=[
2425
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)