|
83 | 83 | shell: bash -l {0} |
84 | 84 | run: | |
85 | 85 | conda activate mhkit-env |
86 | | - pip install -e . --no-deps |
| 86 | + pip install -e ".[all,dev]" --no-deps |
87 | 87 |
|
88 | 88 | - name: Prepare non-hindcast API data |
89 | 89 | shell: bash -l {0} |
@@ -134,7 +134,7 @@ jobs: |
134 | 134 | shell: bash -l {0} |
135 | 135 | run: | |
136 | 136 | conda activate mhkit-env |
137 | | - pip install -e . --no-deps |
| 137 | + pip install -e ".[all,dev]" --no-deps |
138 | 138 |
|
139 | 139 | - name: Prepare Wave Hindcast data |
140 | 140 | shell: bash -l {0} |
@@ -183,7 +183,7 @@ jobs: |
183 | 183 | shell: bash -l {0} |
184 | 184 | run: | |
185 | 185 | conda activate mhkit-env |
186 | | - pip install -e . --no-deps |
| 186 | + pip install -e ".[all,dev]" --no-deps |
187 | 187 |
|
188 | 188 | - name: Prepare Wind Hindcast data |
189 | 189 | shell: bash -l {0} |
@@ -286,7 +286,7 @@ jobs: |
286 | 286 | shell: bash -l {0} |
287 | 287 | run: | |
288 | 288 | python -m pip install --upgrade pip wheel |
289 | | - pip install coverage pytest coveralls . |
| 289 | + pip install -e ".[all,dev]" |
290 | 290 |
|
291 | 291 | - name: Install setuptools for Python 3.12 |
292 | 292 | if: matrix.python-version == '3.12' |
@@ -354,7 +354,7 @@ jobs: |
354 | 354 | shell: bash -l {0} |
355 | 355 | run: | |
356 | 356 | conda activate mhkit-env |
357 | | - pip install -e . --no-deps |
| 357 | + pip install -e ".[all,dev]" --no-deps |
358 | 358 |
|
359 | 359 | - name: Download Wave Hindcast data from artifact |
360 | 360 | uses: actions/download-artifact@v4 |
@@ -390,6 +390,39 @@ jobs: |
390 | 390 | parallel: true |
391 | 391 | path-to-lcov: ./coverage.lcov |
392 | 392 |
|
| 393 | + test-optional-pip-dependencies: |
| 394 | + needs: [set-os, prepare-nonhindcast-cache] |
| 395 | + runs-on: ubuntu-latest |
| 396 | + strategy: |
| 397 | + matrix: |
| 398 | + module: |
| 399 | + [wave, tidal, river, dolfyn, power, loads, mooring, acoustics, utils] |
| 400 | + python-version: ['3.12'] |
| 401 | + |
| 402 | + steps: |
| 403 | + - uses: actions/checkout@v4 |
| 404 | + |
| 405 | + - name: Set up Python ${{ matrix.python-version }} |
| 406 | + uses: actions/setup-python@v5 |
| 407 | + with: |
| 408 | + python-version: ${{ matrix.python-version }} |
| 409 | + |
| 410 | + - name: Download non-hindcast data |
| 411 | + uses: actions/download-artifact@v4 |
| 412 | + with: |
| 413 | + name: data |
| 414 | + path: ~/.cache/mhkit |
| 415 | + |
| 416 | + - name: Install MHKiT with optional dependency |
| 417 | + run: | |
| 418 | + python -m pip install --upgrade pip |
| 419 | + pip install "mhkit[${{ matrix.module }}]" |
| 420 | + pip install pytest |
| 421 | +
|
| 422 | + - name: Run tests for ${{ matrix.module }} |
| 423 | + run: | |
| 424 | + python -m pytest -c .github/workflows/pytest.ini mhkit/tests/${{ matrix.module }}/ |
| 425 | +
|
393 | 426 | notebook-matrix: |
394 | 427 | runs-on: ubuntu-latest |
395 | 428 | needs: |
@@ -476,7 +509,7 @@ jobs: |
476 | 509 | shell: bash -l {0} |
477 | 510 | run: | |
478 | 511 | conda activate mhkit-env |
479 | | - pip install -e . --no-deps |
| 512 | + pip install -e ".[all,dev]" --no-deps |
480 | 513 |
|
481 | 514 | - name: Download non-hindcast data |
482 | 515 | uses: actions/download-artifact@v4 |
|
0 commit comments