Run test suite in random order #112
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run test suite in random order | |
on: | |
schedule: | |
# Run this workflow once a day | |
- cron: "0 0 * * *" | |
jobs: | |
randomize-test-order: | |
if: github.repository == 'networkx/networkx' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install packages | |
run: | | |
pip install --upgrade pip wheel setuptools | |
pip install -r requirements/default.txt -r requirements/test.txt | |
pip install pytest-randomly | |
pip install . | |
pip list | |
- name: Run tests | |
run: pytest --doctest-modules --durations=10 --pyargs networkx |