Fix cache key for lint CI workflow

Also:
- test on Python 3.9 instead of 3.8
- update some action versions

xref. https://github.com/galaxyproject/galaxy/pull/10615#pullrequestreview-521926167
This commit is contained in:
Nicola Soranzo
2020-11-06 18:47:31 +00:00
parent c060b64fd0
commit c86989826a
+5 -7
View File
@@ -1,24 +1,22 @@
name: Python linting
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.8]
python-version: [3.5, 3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip dir
uses: actions/cache@v1
id: pip-cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('galaxy root/requirements.txt') }}
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
- name: Install tox
run: pip install tox
- name: run tests