From c05ba5c814301d01f56099ce62d7e489d6f03478 Mon Sep 17 00:00:00 2001 From: Jacob Pavlock Date: Sun, 5 Jul 2020 21:41:22 -0700 Subject: [PATCH] add integration test github action --- .github/workflows/integration_test.yaml | 32 +++++++++++++++++++++++++ tox.ini | 1 + 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/integration_test.yaml diff --git a/.github/workflows/integration_test.yaml b/.github/workflows/integration_test.yaml new file mode 100644 index 000000000..11085223f --- /dev/null +++ b/.github/workflows/integration_test.yaml @@ -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 \ No newline at end of file diff --git a/tox.ini b/tox.ini index 047784f8b..a62981ec8 100644 --- a/tox.ini +++ b/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