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.11 #1348

Closed
wants to merge 11 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
20 changes: 15 additions & 5 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.11
- name: Install meson and ninja
run: |
python -m pip install --upgrade pip
Expand All @@ -59,8 +59,8 @@ jobs:
- name: Install dependencies (mac)
if: matrix.os == 'macos-latest'
run: |
brew install -q ninja nasm ccache

brew install -q ninja nasm ccache llvm libomp
$CC --version
meson --version
ccache --version
Expand All @@ -75,11 +75,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/bin:$PATH \
CC=$(brew --prefix)/opt/llvm/bin/clang \
CXX=$(brew --prefix)/opt/llvm/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 = py311, 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