setup file updated #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: ['3.8'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Install CMake and Compiler on Linux | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y cmake g++ | |
- name: Install Visual Studio 2019 on Windows | |
if: runner.os == 'Windows' | |
run: | | |
choco install visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --includeOptional" --no-progress | |
- name: Install CMake on Windows | |
if: runner.os == 'Windows' | |
run: choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' --no-progress | |
- name: Install the package | |
run: | | |
pip install . | |
- name: Run tests | |
run: | | |
python -m unittest discover -s tests |