Skip to content

Commit

Permalink
.github: fix macos libsvm-official install
Browse files Browse the repository at this point in the history
  • Loading branch information
nilfm99 committed Feb 8, 2024
1 parent 39f6cfe commit b02d737
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/libvmaf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- name: Install dependencies (mac)
if: matrix.os == 'macos-latest'
run: |
brew install -q ninja nasm ccache
brew install -q ninja nasm ccache llvm
$CC --version
meson --version
Expand All @@ -75,11 +75,19 @@ 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<4'
- name: Run tox tests (ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
tox -c python/ -e py -- -v -p no:warnings -m 'main or lib' --doctest-modules
- name: Run tox tests (mac)
if: matrix.os == 'macos-latest'
run: |
CC=$HOMEBREW_PREFIX/opt/llvm/bin/clang CXX=$HOMEBREW_PREFIX/opt/llvm/bin/clang++ \
tox -c python/ -e p -- -v -p no:warnings -m 'main or lib' --doctest-modules
- name: Get binary path & Current Release
id: get_info
Expand Down
4 changes: 2 additions & 2 deletions python/tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[tox]
envlist = py38, coverage
envlist = py312, coverage


[testenv]
passenv = APPVEYOR* CI SSL_CERT_FILE TEST_MARKER TRAVIS*
passenv = APPVEYOR* CI SSL_CERT_FILE TEST_MARKER TRAVIS* CC CXX
setenv = COVERAGE_FILE={toxworkdir}/.coverage.{envname}
usedevelop = True
deps = -rrequirements.txt
Expand Down

0 comments on commit b02d737

Please sign in to comment.