mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
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:
parent
c0382b41c1
commit
f80703e8e6
@ -1,8 +1,12 @@
|
||||
name: CMake
|
||||
name: C++
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
env:
|
||||
config: Release
|
42
.github/workflows/build_python.yml
vendored
42
.github/workflows/build_python.yml
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user