Make github actions run the python unit tests (#2517)

* Make github actions run the python unit tests

* why don't the pyhton tests run?

* run python tests

* don't run tests twice

* don't run cmake tests twice

* rename the CMake test to C++ since it's testing the C++ part of the library

And the python build uses cmake too, which makes the naming somewhat
confusing

* work around macos

* oops, fix spelling error
This commit is contained in:
Davis E. King 2022-02-20 19:05:02 -05:00 committed by GitHub
parent c0382b41c1
commit f80703e8e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 16 deletions

View File

@ -1,8 +1,12 @@
name: CMake
name: C++
on:
pull_request:
push:
branches:
- master
pull_request:
branches:
- master
env:
config: Release

View File

@ -1,28 +1,42 @@
name: Python
on:
pull_request:
push:
env:
config: Release
build_dir: build
branches:
- master
pull_request:
branches:
- master
defaults:
run:
shell: bash
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
Windows:
runs-on: 'windows-latest'
steps:
- uses: actions/checkout@v2
- name: Build
working-directory: ${{ github.workspace }}
run: python setup.py build
- name: Test
run: python setup.py test
Ubuntu:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
- name: Build
run: python setup.py build
- name: Test
run: python setup.py test
# we don't run python setup.py test on MacOS because there is some system
# issue that prevents it from running at all.
MacOS:
runs-on: 'macos-latest'
steps:
- uses: actions/checkout@v2
- name: Build
run: python setup.py build