| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fd1da13 commit 29b6f09
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,44 @@ | |||
| 1 | + name: CI | ||
| 2 | + on: | ||
| 3 | + - push | ||
| 4 | + - pull_request | ||
| 5 | + jobs: | ||
| 6 | + test: | ||
| 7 | + runs-on: ubuntu-20.04 | ||
| 8 | + strategy: | ||
| 9 | + fail-fast: false | ||
| 10 | + matrix: | ||
| 11 | + python-version: | ||
| 12 | + - "2.7" | ||
| 13 | + - "3.5" | ||
| 14 | + - "3.6" | ||
| 15 | + - "3.7" | ||
| 16 | + - "3.8" | ||
| 17 | + - "3.9" | ||
| 18 | + # - "3.10" # FIXME: broken due to `collections.Iterable` issue; see #330 / #624 / etc. | ||
| 19 | + steps: | ||
| 20 | + - uses: actions/checkout@v1 | ||
| 21 | + - name: Set up Python ${{ matrix.python-version }} | ||
| 22 | + uses: actions/setup-python@v2 | ||
| 23 | + with: | ||
| 24 | + python-version: ${{ matrix.python-version }} | ||
| 25 | + - name: Install ffmpeg | ||
| 26 | + run: | | ||
| 27 | + sudo apt update | ||
| 28 | + sudo apt install ffmpeg | ||
| 29 | + - name: Setup pip + tox | ||
| 30 | + run: | | ||
| 31 | + python -m pip install --upgrade \ | ||
| 32 | + "pip==20.3.4; python_version < '3.6'" \ | ||
| 33 | + "pip==21.3.1; python_version >= '3.6'" | ||
| 34 | + python -m pip install tox==3.24.5 tox-gh-actions==2.9.1 | ||
| 35 | + - name: Test with tox | ||
| 36 | + run: tox | ||
| 37 | + black: | ||
| 38 | + runs-on: ubuntu-20.04 | ||
| 39 | + steps: | ||
| 40 | + - uses: actions/checkout@v2 | ||
| 41 | + - uses: psf/black@21.12b0 # TODO: upgrade after dropping Python 2 support. | ||
| 42 | + with: | ||
| 43 | + src: ffmpeg # TODO: also format `examples`. | ||
| 44 | + version: 21.12b0 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,9 @@ | |||
| 1 | 1 | # ffmpeg-python: Python bindings for FFmpeg | |
| 2 | 2 | ||
| 3 | - [](https://travis-ci.org/kkroening/ffmpeg-python) | ||
| 3 | + [![CI][ci-badge]][ci] | ||
| 4 | + | ||
| 5 | + [ci-badge]: https://github.com/kkroening/ffmpeg-python/actions/workflows/ci.yml/badge.svg | ||
| 6 | + [ci]: https://github.com/kkroening/ffmpeg-python/actions/workflows/ci.yml | ||
| 4 | 7 | ||
| 5 | 8 | <img src="https://raw.githubusercontent.com/kkroening/ffmpeg-python/master/doc/formula.png" alt="ffmpeg-python logo" width="60%" /> | |
| 6 | 9 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,7 +40,6 @@ def __new__(cls, name, this_bases, d): | |||
| 40 | 40 | class basestring(with_metaclass(BaseBaseString)): | |
| 41 | 41 | pass | |
| 42 | 42 | ||
| 43 | - | ||
| 44 | 43 | else: | |
| 45 | 44 | # noinspection PyUnresolvedReferences,PyCompatibility | |
| 46 | 45 | from builtins import basestring | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,8 +60,6 @@ | |||
| 60 | 60 | setup( | |
| 61 | 61 | name='ffmpeg-python', | |
| 62 | 62 | packages=['ffmpeg'], | |
| 63 | - setup_requires=['pytest-runner'], | ||
| 64 | - tests_require=['pytest', 'pytest-mock'], | ||
| 65 | 63 | version=version, | |
| 66 | 64 | description='Python bindings for FFmpeg - with complex filtering support', | |
| 67 | 65 | author='Karl Kroening', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,16 @@ | |||
| 4 | 4 | # and then run "tox" from this directory. | |
| 5 | 5 | ||
| 6 | 6 | [tox] | |
| 7 | - envlist = py27, py34, py35, py36, py37, pypy | ||
| 7 | + envlist = py27, py35, py36, py37, py38, py39 | ||
| 8 | + | ||
| 9 | + [gh-actions] | ||
| 10 | + python = | ||
| 11 | + 2.7: py27 | ||
| 12 | + 3.5: py35 | ||
| 13 | + 3.6: py36 | ||
| 14 | + 3.7: py37 | ||
| 15 | + 3.8: py38 | ||
| 16 | + 3.9: py39 | ||
| 8 | 17 | ||
| 9 | 18 | [testenv] | |
| 10 | 19 | commands = py.test -vv | |
| Back | FazBrowse Home | New Git URL |
0 commit comments