Python unittest. #860
Workflow file for this run
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: Ubuntu | |
on: [push] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Debug | |
jobs: | |
build-test-python: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: ["3.6.x", "3.7.x", "3.8.x", "3.9.x", "3.10.x", "3.11.x"] | |
compiler: [g++-10] | |
architecture: [x64] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
env: | |
CXX: ${{ matrix.compiler }} | |
with: | |
python-version: ${{matrix.python-version}} | |
architecture: ${{matrix.architecture}} | |
- name: Install library | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install ninja-build -y | |
python -m pip install --upgrade pip | |
pip install mypy xmltodict wheel scikit-build | |
pip install -e . -v | |
- name: Run unit tests | |
run: python -m unittest -v |