|
91 | 91 | library-name: ${{ env.PACKAGE_NAME }} |
92 | 92 | operating-system: ${{ matrix.os }} |
93 | 93 | python-version: ${{ matrix.python-version }} |
94 | | - whitelist-license-check: 'attrs' |
| 94 | + whitelist-license-check: 'attrs,referencing' |
| 95 | + target: 'all' |
95 | 96 |
|
96 | 97 | docker-style: |
97 | 98 | name: Docker Style Check |
@@ -545,9 +546,61 @@ jobs: |
545 | 546 | docker logs ${{ env.GEO_CONT_NAME }} |
546 | 547 | docker rm ${{ env.GEO_CONT_NAME }} |
547 | 548 |
|
| 549 | + testing-no-graphics: |
| 550 | + name: Testing with minimum requirements (no graphics) |
| 551 | + needs: [smoke-tests] |
| 552 | + runs-on: ubuntu-latest |
| 553 | + env: |
| 554 | + ANSRV_GEO_IMAGE_MINREQS: 'ghcr.io/ansys/geometry:core-linux-latest' |
| 555 | + strategy: |
| 556 | + fail-fast: false |
| 557 | + matrix: |
| 558 | + python-version: ['3.10', '3.13'] |
| 559 | + steps: |
| 560 | + - name: Login in Github Container registry |
| 561 | + uses: docker/login-action@v3 |
| 562 | + with: |
| 563 | + registry: ghcr.io |
| 564 | + username: ${{ github.actor }} |
| 565 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 566 | + |
| 567 | + - name: Pull and launch geometry service |
| 568 | + run: | |
| 569 | + docker pull ${{ env.ANSRV_GEO_IMAGE_MINREQS }} |
| 570 | + docker run --detach --name ${{ env.GEO_CONT_NAME }} -e LICENSE_SERVER=${{ env.ANSRV_GEO_LICENSE_SERVER }} -p ${{ env.ANSRV_GEO_PORT }}:50051 ${{ env.ANSRV_GEO_IMAGE_MINREQS }} |
| 571 | +
|
| 572 | + - name: Checkout repository |
| 573 | + uses: actions/checkout@v4 |
| 574 | + |
| 575 | + - name: Setup Python ${{ matrix.python-version }} |
| 576 | + uses: actions/setup-python@v5 |
| 577 | + with: |
| 578 | + python-version: ${{ matrix.python-version }} |
| 579 | + |
| 580 | + - name: Install minimum requirements |
| 581 | + run: | |
| 582 | + python -m pip install --upgrade pip |
| 583 | + pip install -e .[tests-minimal] |
| 584 | + # Uninstall pytest-pyvista (not needed for these tests) |
| 585 | + pip uninstall -y pytest-pyvista |
| 586 | + # Installing docker (needed for the tests) |
| 587 | + pip install docker |
| 588 | +
|
| 589 | + - name: Run pytest |
| 590 | + run: | |
| 591 | + pytest -v -c pytest-nographics.ini |
| 592 | +
|
| 593 | + - name: Stop the Geometry service |
| 594 | + if: always() |
| 595 | + run: | |
| 596 | + docker stop ${{ env.GEO_CONT_NAME }} |
| 597 | + docker logs ${{ env.GEO_CONT_NAME }} |
| 598 | + docker rm ${{ env.GEO_CONT_NAME }} |
| 599 | +
|
| 600 | +
|
548 | 601 | package: |
549 | 602 | name: Package library |
550 | | - needs: [testing-windows, testing-linux, testing-min-reqs, docs] |
| 603 | + needs: [testing-windows, testing-linux, testing-min-reqs, testing-no-graphics, docs] |
551 | 604 | runs-on: ubuntu-latest |
552 | 605 | steps: |
553 | 606 | - name: Build library source and wheel artifacts |
|
0 commit comments