Merge pull request #18 from regen100/fix-ci

Fix CI
This commit is contained in:
Regen
2020-06-07 20:17:27 +09:00
committed by GitHub

View File

@@ -10,7 +10,7 @@ jobs:
python: [3.6, 3.7, 3.8] python: [3.6, 3.7, 3.8]
os: [ubuntu-18.04, windows-2016] os: [ubuntu-18.04, windows-2016]
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }} - name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v1 uses: actions/setup-python@v1
with: with:
@@ -21,12 +21,13 @@ jobs:
- name: Install CMake - name: Install CMake
if: contains(matrix.os, 'ubuntu') if: contains(matrix.os, 'ubuntu')
run: | run: |
CMAKE_VERSION=3.14.7 CMAKE_VERSION=3.17.3
curl -sSL https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION-Linux-x86_64.tar.gz | tar xz curl -sSL https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION-Linux-x86_64.tar.gz | tar xz
sudo cp -rT cmake-$CMAKE_VERSION-Linux-x86_64 /usr/local sudo cp -rT cmake-$CMAKE_VERSION-Linux-x86_64 /usr/local
rm -rf cmake-$CMAKE_VERSION-Linux-x86_64 rm -rf cmake-$CMAKE_VERSION-Linux-x86_64
- name: Install dependencies - name: Install dependencies
run: | run: |
cmake --version
python -m pip install --upgrade setuptools pip wheel python -m pip install --upgrade setuptools pip wheel
python -m pip install poetry tox-gh-actions python -m pip install poetry tox-gh-actions
- name: Test with tox - name: Test with tox
@@ -38,4 +39,4 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }} token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests flags: unittests
name: Python ${{ matrix.python }} on ${{ matrix.os }} name: Python ${{ matrix.python }} on ${{ matrix.os }}
fail_ci_if_error: true fail_ci_if_error: false