Skip to content

Commit

Permalink
Explicitely give the python version when installing using pipenv in t…
Browse files Browse the repository at this point in the history
…he CI
  • Loading branch information
LouisBrunner committed Jul 2, 2020
1 parent 0ded910 commit 6fbad96
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 17 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.5, 3.6, 3.7]
python-version: [3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v2
Expand All @@ -20,21 +20,13 @@ jobs:
- name: Install pipenv
uses: dschep/install-pipenv-action@v1
- name: Install dependencies
uses: VaultVulp/action-pipenv@v2.0.1
with:
command: install --dev
run: pipenv install --dev --python ${{ matrix.python-version }}
- name: Run linter
uses: VaultVulp/action-pipenv@v2.0.1
with:
command: run lint
- name: Run type checker
uses: VaultVulp/action-pipenv@v2.0.1
with:
command: run type
run: pipenv run lint
- name: Run type
run: pipenv run type
- name: Run tests
uses: VaultVulp/action-pipenv@v2.0.1
with:
command: run test --cov=evasdk --cov-branch --cov-report=xml
run: pipenv run test --cov=evasdk --cov-branch --cov-report=xml
- name: Upload to codecov
uses: codecov/codecov-action@v1.0.7
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
Expand All @@ -27,7 +27,7 @@ jobs:
sed -i 's/%VERSION%/'$VERSION'/' evasdk/version.py
python setup.py sdist bdist_wheel
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@v1.3.0
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ name = "pypi"
requests = "*"
websockets = "*"
zeroconf = "==0.27.1"
dataclasses = "*"

[dev-packages]
flake8 = "*"
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ __* This SDK is currently in beta__

__Requires Python 3, not compatible with Python 2__

We support Python `3.6` and later.

### Pip

Make sure you have Python3 and pip installed, then run the following command:
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
'requests',
'websockets',
'zeroconf',
'dataclasses',
],
classifiers=[
"Programming Language :: Python :: 3",
Expand Down

0 comments on commit 6fbad96

Please sign in to comment.