mirror of https://github.com/kivy/kivy.git
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
name: OSX Unittests
|
|
|
|
on: [push, pull_request]
|
|
|
|
env:
|
|
KIVY_SPLIT_EXAMPLES: 1
|
|
KIVY_GL_BACKEND: 'mock'
|
|
CC: clang
|
|
CXX: clang
|
|
FFLAGS: '-ff2c'
|
|
USE_SDL2: 1
|
|
USE_GSTREAMER: 1
|
|
|
|
jobs:
|
|
unit_test:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up Python 3.x
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.x
|
|
- name: Cache OSX deps
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: osx-cache
|
|
key: ${{ runner.OS }}-build-${{ hashFiles('.ci/osx_versions.sh') }}
|
|
- name: Cache OSX gst-devel deps
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: osx-cache-gst-devel
|
|
key: gst-devel-${{ runner.OS }}-build-${{ hashFiles('.ci/osx_versions.sh') }}-gst-devel
|
|
- name: Install dependencies
|
|
run: |
|
|
source .ci/ubuntu_ci.sh
|
|
source .ci/osx_versions.sh
|
|
source .ci/osx_ci.sh
|
|
install_kivy_test_run_sys_deps
|
|
install_kivy_test_run_pip_deps
|
|
- name: Install Kivy
|
|
run: |
|
|
source .ci/ubuntu_ci.sh
|
|
install_kivy
|
|
- name: Test Kivy
|
|
run: |
|
|
source .ci/ubuntu_ci.sh
|
|
test_kivy
|