"...windows/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "9a3afff496dc69905c27827506a3ca7ffd062a87"
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:
pull_request:
push:
branches:
- master
pull_request:
branches:
- master
env:
config: Release
......
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
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
working-directory: ${{ github.workspace }}
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