mirror of https://github.com/saimn/sigal.git
4 changed files with 56 additions and 53 deletions
@ -0,0 +1,43 @@
|
||||
name: Run unit tests |
||||
|
||||
on: |
||||
pull_request: |
||||
push: |
||||
branches: |
||||
- master |
||||
tags: |
||||
workflow_dispatch: |
||||
schedule: |
||||
# Run every Sunday at 03:53 UTC |
||||
- cron: 53 3 * * * |
||||
|
||||
jobs: |
||||
build: |
||||
|
||||
runs-on: ubuntu-latest |
||||
strategy: |
||||
matrix: |
||||
python-version: [3.6, 3.7, 3.8, pypy3] |
||||
|
||||
steps: |
||||
- uses: actions/checkout@v2 |
||||
with: |
||||
fetch-depth: 0 |
||||
- name: Set up Python ${{ matrix.python-version }} |
||||
uses: actions/setup-python@v2 |
||||
with: |
||||
python-version: ${{ matrix.python-version }} |
||||
- name: Install FFmpeg |
||||
run: | |
||||
sudo apt install ffmpeg |
||||
ffmpeg -version |
||||
- name: Install Tox |
||||
run: python -m pip install tox tox-gh-actions coverage |
||||
- name: Run Tox |
||||
run: tox |
||||
- name: Convert coverage |
||||
run: python -m coverage xml |
||||
- name: Upload coverage to Codecov |
||||
uses: codecov/codecov-action@v1 |
||||
with: |
||||
fail_ci_if_error: true |
||||
@ -1,44 +0,0 @@
|
||||
language: python |
||||
cache: pip |
||||
dist: xenial |
||||
|
||||
matrix: |
||||
include: |
||||
- python: 3.6 |
||||
before_install: |
||||
- sudo add-apt-repository ppa:mc3man/xerus-media -y |
||||
- sudo apt-get update -qq |
||||
- sudo apt-get install -qq ubuntu-restricted-extras ffmpeg |
||||
before_script: |
||||
ffmpeg --help |
||||
- python: 3.7 |
||||
before_install: |
||||
- sudo add-apt-repository ppa:mc3man/xerus-media -y |
||||
- sudo apt-get update -qq |
||||
- sudo apt-get install -qq ubuntu-restricted-extras ffmpeg |
||||
before_script: |
||||
ffmpeg --help |
||||
- python: 3.8 |
||||
before_install: |
||||
- sudo add-apt-repository ppa:mc3man/xerus-media -y |
||||
- sudo apt-get update -qq |
||||
- sudo apt-get install -qq ubuntu-restricted-extras ffmpeg |
||||
before_script: |
||||
ffmpeg --help |
||||
- python: 3.8 |
||||
env: TOXENV=doc |
||||
- python: 3.8 |
||||
env: TOXENV=check |
||||
allow_failures: |
||||
- env: TOXENV=check |
||||
|
||||
install: pip install -U tox-travis |
||||
|
||||
script: tox -- -v |
||||
|
||||
after_success: |
||||
- pip install codecov |
||||
- codecov |
||||
|
||||
notifications: |
||||
irc: "chat.freenode.net#sigal" |
||||
Loading…
Reference in new issue