Skip to content

build: introduce poetry #10

build: introduce poetry

build: introduce poetry #10

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: [3.6, 3.8]
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