Merge 7a470a85b9cbc878bfc3f87f6e7c603b1a169a74 into f3079726fae7b7b71e4175f79c5eeaddc1d205fb

This commit is contained in:
yoyonel 2021-02-18 17:28:57 +05:30 committed by GitHub
commit d5b1943870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 1 deletions

38
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,38 @@
name: Test
on:
pull_request:
push:
branches:
- master
- develop
jobs:
test:
name: Test
runs-on: ${{ matrix.platform }}
strategy:
max-parallel: 4
matrix:
platform: [ubuntu-latest]
python-version: [2.7, 3.5, 3.6, 3.7, pypy3]
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# https://github.com/marketplace/actions/setup-ffmpeg
- name: Install & setup FFMPEG
uses: FedericoCarboni/setup-ffmpeg@v1-beta
# https://github.com/ymyzk/tox-gh-actions
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox
env:
PLATFORM: ${{ matrix.platform }}

13
tox.ini
View File

@ -3,8 +3,19 @@
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[gh-actions]
python =
2.7: py27
3.5: py35
3.6: py36
3.7: py37
pypy3: pypy
[tox]
envlist = py27, py34, py35, py36, py37, pypy
skipsdist = True
isolated_build = True
envlist = py27, py35, py36, py37, pypy
skip_missing_interpreters = True
[testenv]
commands = py.test -vv