Skip to content

setup file updated

setup file updated #8

Workflow file for this run

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