forked from networkx/networkx
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.82 KB
/
weekly-dispatch.yml
File metadata and controls
48 lines (43 loc) · 1.82 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Weekly Extensive Dispatch Run
on:
schedule:
- cron: "0 0 * * 0" # Every Sunday at midnight UTC
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
dispatch:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install packages
run: |
python -m pip install --upgrade pip
python -m pip install .[default,test]
# Install trusted backends, but not their dependencies.
# We only need to use the "networkx.backend_info" entry-point.
# This is the nightly wheel for nx-cugraph.
pip install nx-cugraph-cu11 --extra-index-url https://pypi.anaconda.org/rapidsai-wheels-nightly/simple --no-deps --pre
# Development version of GraphBLAS backend
pip install git+https://github.com/python-graphblas/graphblas-algorithms.git@main --no-deps
# Development version of nx-parallel backend
# Comment this out for now, nx-parallel doesn't support 3.11
# pip install git+https://github.com/networkx/nx-parallel.git@main --no-deps
# Development version of Neptune Analytics backend
pip install git+https://github.com/awslabs/nx-neptune.git@main --no-deps
python -m pip list
- run: python -c 'import networkx'
- name: Test Dispatching
run: |
pytest -n auto --doctest-modules --durations=10 --pyargs networkx
env:
NETWORKX_TEST_BACKEND: nx_loopback