-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CI issues with python 3.7, readthedocs, outdated tests, and gcov (#…
…1823) Signed-off-by: Darby Johnston <[email protected]>
- Loading branch information
1 parent
003ab04
commit 5c50858
Showing
5 changed files
with
21 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,10 +65,8 @@ jobs: | |
if: matrix.os == env.GH_COV_OS && github.actor != env.GH_DEPENDABOT | ||
run: | | ||
cd ${{ env.OTIO_BUILD_DIR }} | ||
lcov --capture -b . --directory . --output-file=coverage.info -q | ||
lcov --rc lcov_branch_coverage=1 --rc no_exception_branch=1 --ignore-errors mismatch --capture -b . --directory . --output-file=coverage.info -q | ||
cat coverage.info | sed "s/SF:.*src/SF:src/g" > coverage.filtered.info | ||
lcov --remove coverage.filtered.info '*/usr/*' --output-file=coverage.filtered.info -q | ||
lcov --remove coverage.filtered.info '*/deps/*' --output-file=coverage.filtered.info -q | ||
lcov --remove coverage.filtered.info '*/tests/*' --output-file=coverage.filtered.info -q | ||
lcov --list coverage.filtered.info | ||
# \todo Should the Codecov web pages show the results of the C++ or Python tests? | ||
|
@@ -98,6 +96,7 @@ jobs: | |
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] | ||
include: | ||
- { os: ubuntu-latest, shell: bash } | ||
- { os: ubuntu-22.04, shell: bash, python-version: 3.7 } | ||
- { os: macos-latest, shell: bash } | ||
- { os: macos-13, shell: bash } | ||
- { os: windows-latest, shell: pwsh } | ||
|
@@ -106,6 +105,7 @@ jobs: | |
- { os: macos-latest, python-version: 3.7 } | ||
- { os: macos-latest, python-version: 3.8 } | ||
- { os: macos-latest, python-version: 3.9 } | ||
- { os: ubuntu-latest, python-version: 3.7 } | ||
|
||
defaults: | ||
run: | ||
|
@@ -131,9 +131,6 @@ jobs: | |
mingw-w64-x86_64-cmake | ||
make | ||
git | ||
- name: Ensure MSYS2 pip is updated | ||
if: matrix.python-version == 'mingw64' | ||
run: curl -sS https://bootstrap.pypa.io/get-pip.py | python | ||
- name: Set up Python ${{ matrix.python-version }} | ||
if: matrix.python-version != 'mingw64' | ||
uses: actions/[email protected] | ||
|
@@ -151,8 +148,7 @@ jobs: | |
run: make ci-prebuild | ||
- name: Build and Install | ||
run: | | ||
# compile and install into virtualenv/virtual machine (verbosely) | ||
pip install .[dev] -v | ||
pip install .[dev] -v --break-system-packages | ||
- name: Run tests w/ python coverage | ||
run: make ci-postbuild | ||
# (only on ubuntu/pyhton3.7) | ||
|
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
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