36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: Tests
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
env:
|
|
CMAKE_VERSION: 3.14.7
|
|
runs-on: ubuntu-18.04
|
|
strategy:
|
|
matrix:
|
|
python: [3.6, 3.7, 3.8]
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Cache .venev
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: .venev
|
|
key: ${{ runner.OS }}-venv-${{ hashFiles('poetry.lock') }}
|
|
restore-keys: |
|
|
${{ runner.OS }}-venv-
|
|
- name: Set up Python ${{ matrix.python }}
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: ${{ matrix.python }}
|
|
- name: Install dependencies
|
|
run: |
|
|
curl -sSL https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION-Linux-x86_64.tar.gz | tar xz
|
|
python -m pip install --upgrade setuptools pip wheel
|
|
python -m pip install poetry tox-gh-actions
|
|
- name: Test with tox
|
|
run: |
|
|
export PATH=$GITHUB_WORKSPACE/cmake-$CMAKE_VERSION-Linux-x86_64/bin:$PATH
|
|
poetry config settings.virtualenvs.in-project true
|
|
tox
|