Skip to content

Commit

Permalink
MAINT: move dispatch test workflow as an independent CI job (networkx…
Browse files Browse the repository at this point in the history
…#6934)

* MAINT: move dispatch test workflow as an independent CI job

* Update .github/workflows/test.yml

---------

Co-authored-by: Dan Schult <dschult@colgate.edu>
  • Loading branch information
MridulS and dschult committed Oct 23, 2023
1 parent 2b98cc7 commit 65450c3
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/test.yml
Expand Up @@ -55,9 +55,26 @@ jobs:
run: |
pytest --doctest-modules --durations=10 --pyargs networkx
dispatch:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install packages
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements/default.txt -r requirements/test.txt
python -m pip install .
python -m pip list
- name: Test Dispatching
# Limit this to only a single combination from the matrix
if: ${{ (matrix.os == 'ubuntu') && (matrix.python-version == '3.11') }}
run: |
NETWORKX_TEST_BACKEND=nx-loopback pytest --doctest-modules --durations=10 --pyargs networkx
Expand Down

0 comments on commit 65450c3

Please sign in to comment.