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:
|
on:
|
||||||
pull_request:
|
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
env:
|
env:
|
||||||
config: Release
|
config: Release
|
42
.github/workflows/build_python.yml
vendored
42
.github/workflows/build_python.yml
vendored
@ -1,28 +1,42 @@
|
|||||||
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:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ github.workspace }}
|
|
||||||
run: python setup.py 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
|
||||||
|
run: python setup.py build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user