This commit is contained in:
Regen
2019-11-16 02:14:44 +09:00
parent b6916f1082
commit 6b591f7146
2 changed files with 41 additions and 0 deletions

35
.github/workflows/tests.yml vendored Normal file
View File

@@ -0,0 +1,35 @@
name: Tests
on: [push]
jobs:
build:
env:
CMAKE_VERSION: 3.14.7
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04]
python: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v1
- name: Cache .tox
uses: actions/cache@v1
with:
path: .tox
key: ${{ runner.OS }}-tox-${{ hashFiles('poetry.lock') }}
restore-keys: |
${{ runner.OS }}-tox-
- 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
tox