Merge pull request #1827 from XhmikosR/patch-1

Update CI config
This commit is contained in:
Steven Black 2021-12-12 10:51:12 -05:00 committed by GitHub
commit 70980caa09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,20 +1,25 @@
name: CI
on: [push, pull_request]
on:
push:
pull_request:
workflow_dispatch:
jobs:
test:
name: Python ${{ matrix.python }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python:
- 3.5
- 3.6
- 3.7
- 3.8
- 3.9
- '3.5'
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
os:
- ubuntu-latest
- macos-latest
@ -28,24 +33,11 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
cache: pip
- run: python --version
- run: pip --version
- name: Get pip cache directory
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-python-v${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-python-v${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
${{ runner.os }}-python-v${{ matrix.python }}-
- name: Install Python dependencies
run: pip install -r requirements.txt