Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add nightly tests against pre-releases #380

Merged
merged 1 commit into from
Jul 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Nightly

on:
schedule:
- cron: '0 2 * * *' # run at 2 AM UTC

jobs:
test-against-pre-releases-of-dependencies:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox -e pre-release
11 changes: 11 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,14 @@ commands =
autoflake --recursive --in-place --remove-duplicate-keys --remove-unused-variables .
isort .
black .


[testenv:pre-release] # test against pre-releases of dependencies
pip_pre = true
deps = pytest
hypothesis
scipy
basepython = python3.8
commands = pytest --hypothesis-profile ci \
{posargs}
extras =