From de7644f3540bc2b9b92ff0e12fea6aa0213dd834 Mon Sep 17 00:00:00 2001 From: Daniel Huppmann Date: Thu, 7 Jan 2021 12:19:27 +0100 Subject: [PATCH] Add a nightly test (#477) * add nightly test workflow * fix the config * add to release notes * update the docstrings of the nightly test --- .github/workflows/nightly.yml | 50 +++++++++++++++++++++++++++++++++++ RELEASE_NOTES.md | 2 ++ 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 000000000..5157f8d33 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,50 @@ +# This workflow installs the package on Python 3.8, runs the tests and builds the docs +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: nightly +# This workflow is called nightly for consistency with programming convention +# even though it is scheduled to run only once per week... + +on: + schedule: + # see https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events + # 05:00 UTC = 06:00 CET = 07:00 CEST + - cron: "0 5 * * TUE" + +jobs: + pytest: + strategy: + matrix: + os: + - ubuntu-latest + python-version: + - '3.8' + + fail-fast: false + + + runs-on: ${{ matrix.os }} + name: ${{ matrix.os }} py${{ matrix.python-version }} + + 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 and package + run: | + python -m pip install --upgrade pip + pip install -e .[tests,deploy,optional-io-formats,tutorials,docs] + + - name: Test with pytest (including Matplotlib) + run: | + pytest tests --mpl + + - name: Build the docs + run: | + cd doc + make html + cd .. diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index b3c212300..493523c98 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,5 +1,7 @@ # Next Release +- [#477](https://github.com/IAMconsortium/pyam/pull/477) Add a nightly test suite + # Release v0.10.0 ## Highlights