parent
f99c6031e0
commit
d6986be8b0
@ -0,0 +1,44 @@
|
|||||||
|
name: tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
python-version: [3.4, 3.5, 3.6, 3.7, 3.8, 3.9, pypy3]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Lint with flake8
|
||||||
|
run: |
|
||||||
|
pip install flake8
|
||||||
|
flake8 .
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
pip install nose
|
||||||
|
make test
|
||||||
|
|
||||||
|
- name: Generate man pages and bash/zsh completion
|
||||||
|
run: |
|
||||||
|
make man completion
|
@ -1,45 +0,0 @@
|
|||||||
language: python
|
|
||||||
python:
|
|
||||||
- "3.4"
|
|
||||||
- "3.5"
|
|
||||||
- "3.6"
|
|
||||||
- "3.7"
|
|
||||||
- "3.8"
|
|
||||||
- "pypy3"
|
|
||||||
env:
|
|
||||||
- GALLERYDL_TESTS=core
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- python: "3.8"
|
|
||||||
env: GALLERYDL_TESTS=results
|
|
||||||
- python: "3.8"
|
|
||||||
env: GALLERYDL_TESTS=flake8
|
|
||||||
install: pip install flake8
|
|
||||||
script: flake8 .
|
|
||||||
- language: minimal
|
|
||||||
env: GALLERYDL_TESTS=snap
|
|
||||||
addons:
|
|
||||||
snaps:
|
|
||||||
- name: snapcraft
|
|
||||||
classic: true
|
|
||||||
install:
|
|
||||||
- true
|
|
||||||
script:
|
|
||||||
- sudo apt update
|
|
||||||
- snapcraft --destructive-mode
|
|
||||||
- sudo snap try
|
|
||||||
- snap run gallery-dl --verbose https://en.wikipedia.org/static/images/project-logos/enwiki.png
|
|
||||||
allow_failures:
|
|
||||||
- env: GALLERYDL_TESTS=results
|
|
||||||
- env: GALLERYDL_TESTS=snap
|
|
||||||
|
|
||||||
git:
|
|
||||||
depth: 3
|
|
||||||
quiet: true
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
- /^v\d+\.\d+\.\d+(-\S*)?$/
|
|
||||||
- /^test(-\w+)+$/
|
|
||||||
script:
|
|
||||||
- ./scripts/run_tests.sh
|
|
Loading…
Reference in new issue