mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 03:52:51 +01:00
add integration test github action
This commit is contained in:
parent
cb668ccdab
commit
c05ba5c814
2 changed files with 33 additions and 0 deletions
32
.github/workflows/integration_test.yaml
vendored
Normal file
32
.github/workflows/integration_test.yaml
vendored
Normal 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
|
||||
1
tox.ini
1
tox.ini
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue