forked from AcademySoftwareFoundation/OpenTimelineIO
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'AcademySoftwareFoundation:main' into main
- Loading branch information
Showing
366 changed files
with
12,244 additions
and
22,735 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
name: docs | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
check-links: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Create virtualenv | ||
run: python3 -m venv .venv | ||
|
||
- name: Install dependencies | ||
run: | | ||
source .venv/bin/activate | ||
python -m pip install . | ||
python -m pip install -r docs/requirements.txt | ||
- name: Linkcheck | ||
working-directory: docs | ||
run: | | ||
source ../.venv/bin/activate | ||
set +e | ||
make linkcheck | ||
exit_code=$? | ||
set -e | ||
if [ $exit_code -eq 0 ]; then | ||
echo -e "\n\n=================\nAll links are valid!" | ||
echo "# :heavy_check_mark: Sphinx links" >> $GITHUB_STEP_SUMMARY | ||
echo "All links are valid!" >> $GITHUB_STEP_SUMMARY | ||
else | ||
echo -e "\n\n=================\nFound broken links. Look at the build logs.\n" | ||
echo "# :x: Sphinx links" >> $GITHUB_STEP_SUMMARY | ||
echo "Found broken links. Look at the build logs for additional information." >> $GITHUB_STEP_SUMMARY | ||
echo '```' >> $GITHUB_STEP_SUMMARY | ||
cat _build/linkcheck/output.txt >> $GITHUB_STEP_SUMMARY | ||
echo '```' >> $GITHUB_STEP_SUMMARY | ||
fi | ||
exit $exit_code | ||
check-warnings: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Create virtualenv | ||
run: python3 -m venv .venv | ||
|
||
- name: Install dependencies | ||
run: | | ||
source .venv/bin/activate | ||
python -m pip install . | ||
python -m pip install -r docs/requirements.txt | ||
- name: Check warnings/errors | ||
working-directory: docs | ||
run: | | ||
source ../.venv/bin/activate | ||
set +e | ||
make htmlstrict | ||
exit_code=$? | ||
set -e | ||
if [ $exit_code -eq 0 ]; then | ||
echo -e "\n\n=================\nNo warnings or errors detected!" | ||
echo "# :heavy_check_mark: Sphinx warnings/errors" >> $GITHUB_STEP_SUMMARY | ||
echo "No errors or warnings detected!" >> $GITHUB_STEP_SUMMARY | ||
else | ||
echo -e "\n\n=================\nWarnings and or errors detected; See the summary bellow:\n" | ||
cat _build/htmlstrict/output.txt | ||
echo "# :x: Sphinx warnings/errors" >> $GITHUB_STEP_SUMMARY | ||
echo "Found some warnings or errors:" >> $GITHUB_STEP_SUMMARY | ||
echo '```' >> $GITHUB_STEP_SUMMARY | ||
cat _build/htmlstrict/output.txt >> $GITHUB_STEP_SUMMARY | ||
echo '```' >> $GITHUB_STEP_SUMMARY | ||
fi | ||
exit $exit_code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,10 @@ on: | |
pull_request: | ||
branches: [ main ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
cpp_build: | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -35,6 +39,7 @@ jobs: | |
OTIO_BUILD_CONFIG: Release | ||
OTIO_BUILD_DIR: ${{ github.workspace }}/build | ||
OTIO_INSTALL_DIR: ${{ github.workspace }}/install | ||
OTIO_CONSUMER_TEST_BUILD_DIR: ${{ github.workspace }}/consumertest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -67,7 +72,7 @@ jobs: | |
# \todo Should the Codecov web pages show the results of the C++ or Python tests? | ||
# - name: Upload coverage to Codecov | ||
# if: matrix.os == env.GH_COV_OS && github.actor != env.GH_DEPENDABOT | ||
# uses: codecov/codecov-action@v2.1.0 | ||
# uses: codecov/codecov-action@v3.1.1 | ||
# with: | ||
# files: ${{ env.OTIO_BUILD_DIR }}/coverage.filtered.info | ||
# flags: unittests | ||
|
@@ -77,13 +82,27 @@ jobs: | |
run: | | ||
cd ${{ env.OTIO_BUILD_DIR }} | ||
cmake --build . --target install --config ${{ env.OTIO_BUILD_CONFIG }} | ||
- name: Consumer tests | ||
run: | | ||
cmake -E make_directory ${{ env.OTIO_CONSUMER_TEST_BUILD_DIR }} | ||
cd ${{ env.OTIO_CONSUMER_TEST_BUILD_DIR }} | ||
cmake ${{ github.workspace }}/tests/consumer -DCMAKE_PREFIX_PATH=${{ env.OTIO_INSTALL_DIR }} | ||
py_build_test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: ['2.7', '3.7', '3.8', '3.9', '3.10'] | ||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] | ||
include: | ||
- { os: ubuntu-latest, shell: bash } | ||
- { os: macos-latest, shell: bash } | ||
- { os: windows-latest, shell: pwsh } | ||
- { os: windows-latest, shell: msys2, python-version: 'mingw64' } | ||
|
||
defaults: | ||
run: | ||
shell: '${{ matrix.shell }} {0}' | ||
|
||
env: | ||
OTIO_CXX_COVERAGE_BUILD: ON | ||
|
@@ -93,20 +112,31 @@ jobs: | |
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
- name: Set up MSYS2 | ||
if: matrix.python-version == 'mingw64' | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: mingw64 | ||
install: >- | ||
mingw-w64-x86_64-python | ||
mingw-w64-x86_64-python-pip | ||
mingw-w64-x86_64-gcc | ||
mingw-w64-x86_64-cmake | ||
make | ||
git | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
if: matrix.python-version != 'mingw64' | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install coverage dependency | ||
if: matrix.python-version == env.GH_COV_PY && matrix.os == env.GH_COV_OS && github.actor != env.GH_DEPENDABOT | ||
run: | | ||
echo 'OTIO_CXX_DEBUG_BUILD=1' >> $GITHUB_ENV | ||
sudo apt-get install lcov | ||
- name: Install python build dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel flake8>=3.5 check-manifest | ||
- name: install mock for python 2.7 tests only | ||
if: matrix.python-version == 2.7 | ||
run: python -m pip install --upgrade mock | ||
python -m pip install --upgrade pip setuptools wheel "flake8>=3.5" check-manifest | ||
- name: Run check-manifest and lint check | ||
run: make ci-prebuild | ||
- name: Build and Install | ||
|
@@ -121,7 +151,7 @@ jobs: | |
run: make lcov | ||
- name: Upload coverage to Codecov | ||
if: matrix.python-version == env.GH_COV_PY && matrix.os == env.GH_COV_OS && github.actor != env.GH_DEPENDABOT | ||
uses: codecov/codecov-action@v2.1.0 | ||
uses: codecov/codecov-action@v3.1.1 | ||
with: | ||
flags: py-unittests | ||
name: py-opentimelineio-codecov | ||
|
@@ -133,47 +163,21 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-build: ['cp27*', 'cp37*', 'cp38*', 'cp39*', 'cp310*'] | ||
python-build: ['cp37*', 'cp38*', 'cp39*', 'cp310*', 'cp311*'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# cibuildwheel 1.12.0 gates Python 2.7 wheels builds | ||
# by using two environment variables, DISTUTILS_USE_SDK and MSSdk. | ||
# https://cibuildwheel.readthedocs.io/en/1.x/cpp_standards/#windows-and-python-27 | ||
# Note that normally these are used by setuptools/distutils, but in our case | ||
# they are really just used for cibuildwheel as we don't use any of the | ||
# setuptools/distutils build tools. Our builds are entirely handled | ||
# by CMake. CMake is able to find the right toolchain, thanks to | ||
# the -A argument that we specify in the setup.py to set the | ||
# target platform (x86, x64, etc). | ||
- name: Set Windows Python 2.7 environment variables | ||
if: matrix.python-build == 'cp27*' && runner.os == 'Windows' | ||
shell: bash | ||
run: | | ||
echo "DISTUTILS_USE_SDK=1" >> $GITHUB_ENV | ||
echo "MSSdk=1" >> $GITHUB_ENV | ||
- name: Build wheels (Python 2.7) | ||
if: matrix.python-build == 'cp27*' | ||
# cibuildwheel 1.12.0 is the last release that supported Python 2.7. | ||
uses: pypa/[email protected] | ||
with: | ||
output-dir: wheelhouse | ||
env: | ||
CIBW_BUILD: ${{ matrix.python-build }} | ||
|
||
- name: Build wheels (Python 3) | ||
uses: pypa/[email protected] | ||
if: matrix.python-build != 'cp27*' | ||
uses: pypa/[email protected] | ||
with: | ||
output-dir: wheelhouse | ||
env: | ||
CIBW_BUILD: ${{ matrix.python-build }} | ||
CIBW_SKIP: '*musllinux*' | ||
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2010 | ||
CIBW_MANYLINUX_I686_IMAGE: manylinux2010 | ||
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 | ||
CIBW_MANYLINUX_I686_IMAGE: manylinux2014 | ||
|
||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: ./wheelhouse/*.whl | ||
|
@@ -186,15 +190,15 @@ jobs: | |
with: | ||
submodules: 'recursive' | ||
|
||
- uses: actions/setup-python@v3 | ||
- uses: actions/setup-python@v4.3.0 | ||
|
||
- name: Install pypa/build | ||
run: python -m pip install build --user | ||
|
||
- name: Generate sdist | ||
run: python -m build -s . | ||
|
||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: sdist | ||
path: dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.