summaryrefslogtreecommitdiff
path: root/.github/workflows/pytest-randomly.yml
blob: 2b8b175464b72719cb41400b79bca61b1c1f7f51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Run test suite in random order
on:
  schedule:
    # Run this workflow once a day
    - cron: "0 0 * * *"

jobs:

  randomize-test-order:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: "3.9"

    - 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