2727 runs-on : ${{ matrix.os }}
2828 strategy :
2929 matrix :
30- os : [macos-latest, ubuntu-20.04, ubuntu-latest, windows-latest]
31- python-version : ["3.7", "3.8", "3.9", "3.10", "3.11"]
30+ # TODO(1.6.1): Deprecate Python 3.7 and support macos-14.
31+ os : [macos-13, ubuntu-20.04, ubuntu-latest, windows-latest]
32+ python-version : ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
33+
34+ env :
35+ # Version is extracted below and used to find correct package install path.
36+ scenedetect_version : " "
3237
3338 steps :
3439 - uses : actions/checkout@v4
4045 cache : ' pip'
4146
4247 - name : Install Dependencies
43- # TODO: `setuptools` is pinned for the Python 3.7 builder and can be unpinned when removed .
48+ # TODO(1.6.1): Unpin the following requirements when deprecating the Python 3.7 builder.
4449 run : |
45- python -m pip install --upgrade pip build wheel virtualenv setuptools==62.3.4
50+ python -m pip install --upgrade pip build==1.1.1 wheel====0.42.0 virtualenv setuptools==62.3.4
4651 pip install av opencv-python-headless --only-binary :all:
4752 pip install -r requirements_headless.txt
4853
@@ -84,15 +89,13 @@ jobs:
8489 git mv docs docs_src
8590 sphinx-build -b singlehtml docs_src docs
8691
87- # TODO: Make the version extraction work on powershell so package smoke tests can run on Windows.
8892 - name : Build Package
89- if : ${{ matrix.os != 'windows-latest' }}
93+ shell : bash
9094 run : |
9195 python -m build
9296 echo "scenedetect_version=`python -c \"import scenedetect; print(scenedetect.__version__.replace('-', '.'))\"`" >> "$GITHUB_ENV"
9397
9498 - name : Smoke Test Package (Source Dist)
95- if : ${{ matrix.os != 'windows-latest' }}
9699 run : |
97100 python -m pip install dist/scenedetect-${{ env.scenedetect_version }}.tar.gz
98101 scenedetect version
@@ -101,7 +104,6 @@ jobs:
101104 python -m pip uninstall -y scenedetect
102105
103106 - name : Smoke Test Package (Wheel)
104- if : ${{ matrix.os != 'windows-latest' }}
105107 run : |
106108 python -m pip install dist/scenedetect-${{ env.scenedetect_version }}-py3-none-any.whl
107109 scenedetect version
0 commit comments