@@ -5,13 +5,15 @@ concurrency:
55on :
66 pull_request :
77 paths :
8- - ' **.py'
8+ - " **.py"
9+ - " **.yml"
10+ - " **.toml"
911 push :
1012 branches : [main]
1113 paths :
12- - ' **.py'
14+ - " **.py"
1315 tags :
14- - ' v*.*.*'
16+ - " v*.*.*"
1517 workflow_dispatch :
1618
1719jobs :
@@ -20,25 +22,25 @@ jobs:
2022 runs-on : ubuntu-latest
2123 strategy :
2224 matrix :
23- poetry-version : [1.5 .1]
25+ poetry-version : [1.6 .1]
2426 steps :
2527 - name : Checkout repository
2628 uses : actions/checkout@v4
2729 - name : Setup Python 3.9
2830 uses : actions/setup-python@v4
2931 with :
30- python-version : ' 3.9'
31- architecture : ' x64'
32+ python-version : " 3.9"
33+ architecture : " x64"
3234 - name : Install Poetry ${{ matrix.poetry-version }}
3335 uses : abatilo/actions-poetry@v2.3.0
3436 with :
3537 poetry-version : ${{ matrix.poetry-version }}
3638 - name : Install Poetry Dynamic Versioning Plugin
3739 run : pip install poetry-dynamic-versioning
38-
40+
3941 - name : Install dependencies
4042 run : poetry install --only style
41-
43+
4244 # check formatting of the code style
4345 - name : Check code formatting
4446 run : poetry run poe format_check
5759 matrix :
5860 os : [ubuntu, macos, windows]
5961 python-version : [3.9, "3.10", "3.11"]
60- poetry-version : [1.5 .1]
62+ poetry-version : [1.6 .1]
6163 name : build ${{ matrix.os }} - py${{ matrix.python-version }}
6264 runs-on : ${{ matrix.os }}-latest
6365 defaults :
7072 uses : actions/setup-python@v4
7173 with :
7274 python-version : ${{ matrix.python-version }}
73- architecture : ' x64'
75+ architecture : " x64"
7476 - name : Install Poetry ${{ matrix.poetry-version }}
7577 uses : abatilo/actions-poetry@v2.3.0
7678 with :
@@ -113,9 +115,12 @@ jobs:
113115 fail-fast : false
114116 matrix :
115117 os : [ubuntu, macos, windows]
116- python-version : [3.9, "3.11"] # oldest and newest supported versions
117- poetry-version : [1.5 .1]
118+ python-version : [3.9, "3.11"] # oldest and newest supported versions
119+ poetry-version : [1.6 .1]
118120 networkx : [stable, main]
121+ exclude :
122+ - python-version : 3.9
123+ networkx : main
119124 name : Unit-test ${{ matrix.os }} - py${{ matrix.python-version }} - Networkx ${{ matrix.networkx }}
120125 runs-on : ${{ matrix.os }}-latest
121126 defaults :
@@ -128,29 +133,34 @@ jobs:
128133 uses : actions/setup-python@v4
129134 with :
130135 python-version : ${{ matrix.python-version }}
131- architecture : ' x64'
136+ architecture : " x64"
132137 - name : Install Poetry ${{ matrix.poetry-version }}
133138 uses : abatilo/actions-poetry@v2.3.0
134139 with :
135140 poetry-version : ${{ matrix.poetry-version }}
136141 - name : Install Poetry Dynamic Versioning Plugin
137- run : pip install poetry-dynamic-versioning
142+ run : |
143+ pip install --upgrade pip
144+ pip install poetry-dynamic-versioning
138145 - name : Install packages via poetry
139146 run : |
140147 poetry install --with test
141148 - name : Install Networkx (main)
142149 if : " matrix.networkx == 'main'"
143150 run : |
144151 pip uninstall -yq networkx
145- pip install --progress-bar off git+https://github.com/networkx/networkx
146-
152+ git clone https://github.com/networkx/networkx.git
153+ cd networkx
154+ pip install .[default]
155+ # pip install --progress-bar off git+https://github.com/networkx/networkx
156+
147157 - name : Setup torch for pgmpy
148158 if : " matrix.os == 'ubuntu'"
149159 shell : bash
150160 run : |
151161 sudo apt-get install nvidia-cuda-toolkit nvidia-cuda-toolkit-gcc
152-
153- - name : Run pytest # headless via Xvfb on linux
162+
163+ - name : Run pytest # headless via Xvfb on linux
154164 run : poetry run poe unit_test
155165 - name : Upload coverage stats to codecov
156166 if : ${{ matrix.os == 'ubuntu' && matrix.python-version == '3.11' && matrix.networkx == 'stable' }}
@@ -173,7 +183,7 @@ jobs:
173183 uses : actions/setup-python@v4
174184 with :
175185 python-version : 3.9
176- architecture : ' x64'
186+ architecture : " x64"
177187 - name : Install dependencies
178188 run : |
179189 python -m pip install --progress-bar off --upgrade pip setuptools wheel
0 commit comments