Skip to content

Use cached data if getting API token fails #70

Use cached data if getting API token fails

Use cached data if getting API token fails #70

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- { name: '3.9', python: '3.9', tox: py39 }
- { name: '3.10', python: '3.10', tox: py310 }
- { name: Style, python: '3.10', tox: style }
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Update pip
run: |
pip install -U wheel
pip install -U setuptools
python -m pip install -U pip
- name: Get pip cache dir
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"
- name: Cache pip
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.*') }}
- run: pip install tox
- run: tox -e ${{ matrix.tox }}