2020-10-23 22:24:50 +08:00
|
|
|
name: pytest
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'library/**.py'
|
|
|
|
- 'plugins/filter/**.py'
|
|
|
|
- 'tests/library/**.py'
|
|
|
|
- 'tests/plugins/filter/**.py'
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-11-23 22:40:46 +08:00
|
|
|
python-version: [2.7, 3.6]
|
2020-10-23 22:24:50 +08:00
|
|
|
name: Python ${{ matrix.python-version }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
architecture: x64
|
|
|
|
- run: pip install -r tests/requirements.txt
|
|
|
|
- run: pytest --cov=library/ --cov=plugins/filter/ -vvvv tests/library/ tests/plugins/filter/
|