add integration test github action

This commit is contained in:
Jacob Pavlock 2020-07-05 21:41:22 -07:00
parent cb668ccdab
commit c05ba5c814
2 changed files with 33 additions and 0 deletions

32
.github/workflows/integration_test.yaml vendored Normal file
View file

@ -0,0 +1,32 @@
name: integration tests
on:
schedule:
- cron: '0 0 * * SUN' # run every Sunday at midnight
jobs:
test integration:
runs-on: ubuntu-latest
strategy:
python-version: 3.8
env:
NOSE_SHOW_SKIPPED: 1
PY_COLOR: 1
INTEGRATION_TEST: 1
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install base dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Test with tox
run: |
tox -e py38-test

View file

@ -37,6 +37,7 @@ files = beets beetsplug beet test setup.py docs
[testenv]
passenv =
NOSE_SHOW_SKIPPED # Undocumented feature of nose-show-skipped.
INTEGRATION_TEST # set to 1 for integration tests
deps =
{test,cov}: {[_test]deps}
py27: pathlib