Bump pillow from 8.1.0 to 10.0.1 #18
This file contains 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: build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{matrix.platform}} | |
strategy: | |
matrix: | |
platform: [ubuntu-18.04, macos-10.15, windows-2019] | |
env: | |
VLC_VERSION: 3.0.16 | |
POETRY_VERSION: 1.1.4 | |
POETRY_VIRTUALENVS_IN_PROJECT: true | |
continue-on-error: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install Poetry | |
run: pip install poetry==${{env.POETRY_VERSION}} | |
- name: Load cached python virtual environment | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-venv | |
with: | |
path: ./.venv | |
key: ${{runner.os}}-${{env.cache-name}}-${{hashFiles('poetry.lock')}} | |
restore-keys: | | |
${{runner.os}}-build-${{env.cache-name}}- | |
${{runner.os}}-build- | |
${{runner.os}}- | |
- name: Install Dependencies | |
run: poetry install | |
if: steps.cache.outputs.cache-hit != 'true' | |
- name: Install VLC (for Linux) | |
if: runner.os == 'Linux' | |
run: sudo apt-get update && sudo apt-get -qq install vlc | |
- name: Install VLC (for macOS) | |
if: runner.os == 'macOS' | |
shell: bash | |
run: ./.github/scripts/install-vlc-mac.sh | |
- name: Install VLC (for Windows) | |
if: runner.os == 'Windows' | |
shell: powershell | |
run: ./.github/scripts/install-vlc-win.ps1 | |
- name: Install Xvfb Dependencies on Linux | |
if: runner.os == 'Linux' | |
run: > | |
sudo apt-get update && sudo apt-get -qq install | |
libxkbcommon-x11-0 | |
libxcb-icccm4 | |
libxcb-image0 | |
libxcb-keysyms1 | |
libxcb-randr0 | |
libxcb-render-util0 | |
libxcb-xinerama0 | |
libxcb-xfixes0 | |
- name: Run Tests | |
env: | |
DISPLAY: ":99.0" | |
run: poetry run pytest --cov=app --cov-report=xml:coverage-${{runner.os}}.xml | |
- name: Upload coverage artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: coverage | |
path: ./coverage-${{runner.os}}.xml | |
- name: Set up Ruby (for Linux) | |
if: runner.os == 'Linux' | |
uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
- name: Install fpm (for Linux) | |
if: runner.os == 'Linux' | |
run: | | |
gem install --no-document fpm | |
- name: Build (${{runner.os}}) | |
run: | | |
poetry run python build.py freeze | |
poetry run python build.py installer | |
- name: Upload ${{runner.os}} installer | |
uses: actions/upload-artifact@v2 | |
with: | |
name: installer-${{runner.os}} | |
path: | | |
dist/*.deb | |
dist/*.dmg | |
dist/*.exe | |
- name: Upload Test Coverage | |
uses: codecov/codecov-action@v2 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
files: coverage-${{runner.os}}.xml | |
flags: ${{runner.os}} | |
fail_ci_if_error: true |