.github: pythonpackage: Use caching, pip3->pip
Since python version in "setup-python" action is already
3.x, no need to specify "pip3"
@@ -21,10 +21,17 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
+ cache: 'pip'
+ # Dependencies are in setup.py, so use it as cache key
+ cache-dependency-path: 'setup.py'
+
- name: Install isso dependencies
- run: python setup.py develop
+ # Use pip instead of python setup.py develop to get caching from
+ # "setup-python" action
+ run: pip install -e .
+
- name: Install test suite dependencies
- run: pip3 install pytest
+ run: pip install pytest
- name: Run test suite
run: make test
@@ -32,7 +39,7 @@ jobs:
PYTHONHASHSEED: random
- name: Install style check dependencies
- run: pip3 install flake8
+ run: pip install flake8
- name: Run style check
run: make flakes
