1515 PACKAGE_NAMESPACE : ' ansys.tools.path'
1616 DOCUMENTATION_CNAME : ' path.tools.docs.pyansys.com'
1717
18- jobs :
19- style :
20- name : Code style
21- runs-on : ubuntu-latest
22- steps :
23- - name : PyAnsys code style checks
24- uses : pyansys/actions/code-style@v4
25- with :
26- python-version : ${{ env.MAIN_PYTHON_VERSION }}
18+ concurrency :
19+ group : ${{ github.workflow }}-${{ github.ref }}
20+ cancel-in-progress : true
21+
2722
23+ jobs :
2824 smoke-tests :
2925 name : " Build and smoke tests"
3026 runs-on : ${{ matrix.os }}
31- needs : [style]
32- if : github.ref != 'refs/heads/main'
33- timeout-minutes : 20
3427 strategy :
3528 fail-fast : false
3629 matrix :
3730 os : [ubuntu-latest, windows-latest, macos-latest]
3831 python-version : ['3.7', '3.8', '3.9', '3.10', '3.11']
3932 # Only perform wheelhouse builds for macOS when releasing
40- should-release :
33+ should-release :
4134 - ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
4235 exclude :
4336 - should-release : false
@@ -50,12 +43,11 @@ jobs:
5043 library-namespace : ${{ env.PACKAGE_NAMESPACE }}
5144 operating-system : ${{ matrix.os }}
5245 python-version : ${{ matrix.python-version }}
53-
46+
5447 build-tests :
5548 name : Build and Testing
5649 runs-on : ubuntu-latest
5750 needs : [smoke-tests]
58- timeout-minutes : 20
5951 container :
6052 image : ghcr.io/pyansys/mapdl:v22.2-ubuntu
6153 options : " -u=0:0 --entrypoint /bin/bash"
7870
7971 - name : Unit testing
8072 run : |
81- cd tests # so we're testing the install, not local
8273 python -m pytest -vx --cov=${{ env.PACKAGE_NAMESPACE }} --cov-report=term --cov-report=xml:.cov/coverage.xml --cov-report=html:.cov/html
8374
8475 - name : Upload coverage reports to Codecov
8778 files : .cov/coverage.xml
8879
8980 docs-style :
90- name : PyAnsys documentation style check using Vale
81+ name : Documentation style check
9182 runs-on : ubuntu-latest
9283 steps :
9384 - name : PyAnsys documentation style checks
0 commit comments