1. relaxed the version constraints for numpy. #25
This file contains hidden or 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
name: Ailice Installation Test | |
on: | |
push: | |
branches: [ main, master ] | |
pull_request: | |
branches: [ main, master ] | |
workflow_dispatch: | |
jobs: | |
test-installation: | |
name: Test on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python-version: ['3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install PyAV dependencies (Ubuntu) | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y \ | |
libavformat-dev libavcodec-dev libavdevice-dev \ | |
libavutil-dev libswscale-dev libswresample-dev libavfilter-dev | |
- name: Install PyAV dependencies (MacOS) | |
if: matrix.os == 'macos-latest' | |
run: | | |
brew install ffmpeg | |
- name: Install PyAV dependencies (Windows) | |
if: matrix.os == 'windows-latest' | |
run: | | |
choco install ffmpeg | |
- name: Install Chrome (Ubuntu) | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo apt-get install -y ./google-chrome-stable_current_amd64.deb | |
rm google-chrome-stable_current_amd64.deb | |
- name: Install Chrome (MacOS) | |
if: matrix.os == 'macos-latest' | |
run: | | |
brew install --cask google-chrome | |
- name: Install Chrome (Windows) | |
if: matrix.os == 'windows-latest' | |
shell: powershell | |
run: | | |
$Path = $env:TEMP + '\chrome_installer.exe' | |
Invoke-WebRequest -Uri 'https://dl.google.com/chrome/install/latest/chrome_installer.exe' -OutFile $Path | |
Start-Process -FilePath $Path -Args '/silent /install' -Wait | |
Remove-Item -Path $Path | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install cmake ninja | |
- name: Install package | |
run: | | |
python -m pip install -e . | |
- name: Test import | |
run: | | |
python -c "import ailice; print('Import successful')" | |
- name: Test CLI | |
run: | | |
ailice --help || echo "Version check completed" |