Skip to content

Merge pull request #56 from hrz6976/fix-v3 #96

Merge pull request #56 from hrz6976/fix-v3

Merge pull request #56 from hrz6976/fix-v3 #96

Workflow file for this run

name: Run unit tests on every push
on: [push, pull_request]
jobs:
test:
name: Python ${{ matrix.python-version }} tests
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [2.7, 3.6]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies (Python ${{ matrix.python-version }})
run: |
python -m pip install --upgrade pip
pip install typing cython setuptools>=18.0
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests on Python ${{ matrix.python-version }}
run: make test_local