Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python3.12 v6 #1347

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions .github/workflows/libvmaf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
- name: Install meson and ninja
run: |
python -m pip install --upgrade pip
Expand All @@ -59,8 +59,14 @@ jobs:
- name: Install dependencies (mac)
if: matrix.os == 'macos-latest'
run: |
brew install -q ninja nasm ccache
brew install -q ninja nasm ccache llvm@14 libomp

echo "BREW PREFIX"
echo $(brew --prefix)
brew info llvm@14
brew info libomp
ls -R $(brew --prefix)/opt/

$CC --version
meson --version
ccache --version
Expand All @@ -75,11 +81,21 @@ jobs:
- name: Run tests
run: |
sudo ninja -vC libvmaf/build test
- name: Run tox tests
- name: Set up tox
run: |
mkdir -p ~/.ccache && sudo chown -R $(whoami) ~/.ccache
pip install tox
tox -c python/ -e py -- -v -p no:warnings -m 'main or lib' --doctest-modules
- name: Run tox tests (ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
tox -c python
- name: Run tox tests (mac)
if: matrix.os == 'macos-latest'
run: |
PATH=$(brew --prefix)/opt/llvm@14/bin:$PATH \
CC=$(brew --prefix)/opt/llvm@14/bin/clang \
CXX=$(brew --prefix)/opt/llvm@14/bin/clang++ \
tox -c python

- name: Get binary path & Current Release
id: get_info
Expand Down
5 changes: 4 additions & 1 deletion python/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py38, coverage
envlist = py312, coverage


[testenv]
Expand All @@ -8,6 +8,9 @@ passenv = APPVEYOR*
SSL_CERT_FILE
TEST_MARKER
TRAVIS*
PATH
CC
CXX
setenv = COVERAGE_FILE={toxworkdir}/.coverage.{envname}
usedevelop = True
deps = -rrequirements.txt
Expand Down
Loading