Unverified Commit f80703e8 authored by Davis E. King's avatar Davis E. King Committed by GitHub
Browse files

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
parent c0382b41
name: CMake name: C++
on: on:
pull_request:
push: push:
branches:
- master
pull_request:
branches:
- master
env: env:
config: Release config: Release
......
name: Python name: Python
on: on:
pull_request:
push: push:
branches:
env: - master
config: Release pull_request:
build_dir: build branches:
- master
defaults: defaults:
run: run:
shell: bash shell: bash
jobs: jobs:
build: Windows:
runs-on: ${{ matrix.os }} runs-on: 'windows-latest'
strategy: steps:
fail-fast: false - uses: actions/checkout@v2
matrix: - name: Build
os: ['ubuntu-latest', 'windows-latest', 'macos-latest'] run: python setup.py build
- name: Test
run: python setup.py test
Ubuntu:
runs-on: 'ubuntu-latest'
steps: steps:
- uses: actions/checkout@v2 - 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 - name: Build
working-directory: ${{ github.workspace }}
run: python setup.py build run: python setup.py build
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment