Skip to content

Commit

Permalink
Add a nightly test (#477)
Browse files Browse the repository at this point in the history
* add nightly test workflow

* fix the config

* add to release notes

* update the docstrings of the nightly test
  • Loading branch information
danielhuppmann committed Jan 7, 2021
1 parent dd229ea commit de7644f
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -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 ..
2 changes: 2 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Next Release

- [#477](https://github.com/IAMconsortium/pyam/pull/477) Add a nightly test suite

# Release v0.10.0

## Highlights
Expand Down

0 comments on commit de7644f

Please sign in to comment.