File tree Expand file tree Collapse file tree 2 files changed +33
-19
lines changed
Expand file tree Collapse file tree 2 files changed +33
-19
lines changed Original file line number Diff line number Diff line change @@ -86,10 +86,25 @@ jobs:
8686 ANSYS_LOCAL : false
8787 ON_UBUNTU : true
8888 steps :
89- - uses : ansys/actions/tests-pytest@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
89+ - name : Checkout repository
90+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
91+
92+ - name : Set up uv
93+ uses : astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # 7.0.0
9094 with :
91- group-dependencies-name : tests
92- # uv pip install tests/launcher/pkg_with_entrypoint
95+ python-version : ${{ env.MAIN_PYTHON_VERSION }}
96+
97+ - name : Install project dependencies
98+ run : |
99+ uv sync --group tests
100+
101+ - name : Install test package containing entrypoint
102+ run : |
103+ uv pip install tests/launcher/pkg_with_entrypoint
104+
105+ - name : Run tests
106+ run : |
107+ uv run pytest
93108
94109 doc-build :
95110 name : Build documentation
Original file line number Diff line number Diff line change 1616
1717jobs :
1818 build-tests :
19- runs-on : ubuntu-22.04
19+ runs-on : ubuntu-latest
2020 container :
2121 image : ghcr.io/ansys/mapdl:v22.2-ubuntu
2222 options : -u=0:0 --entrypoint /bin/bash
@@ -28,25 +28,24 @@ jobs:
2828 ON_UBUNTU : true
2929
3030 steps :
31- - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
32- - name : Setup Python
33- uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
31+ - name : Checkout repository
32+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
33+
34+ - name : Set up uv
35+ uses : astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # 7.0.0
3436 with :
3537 python-version : ${{ env.MAIN_PYTHON_VERSION }}
36- - name : Install uv and create venv
37- run : |
38- python -m pip install --upgrade pip
39- pip install uv
38+
4039 - name : Install project dependencies
4140 run : |
42- uv sync --extra tests
43- - name : Run tests
41+ uv sync --group tests
42+
43+ - name : Install test package containing entrypoint
4444 run : |
45- uv sync --extra tests --no-dev
4645 uv pip install tests/launcher/pkg_with_entrypoint
47- uv run pytest -vx --cov=${{ env.PACKAGE_NAMESPACE }} --cov-report=term --cov-report=xml:.cov/coverage.xml --cov-report=html:.cov/html
4846
49- # - uses: codecov/codecov-action@v5
50- # name: 'Upload coverage to CodeCov'
51- # with:
52- # token: ${{ secrets.CODECOV_TOKEN }}
47+ - name : Run tests
48+ run : |
49+ uv run pytest \
50+ -vx \
51+ --cov=${{ env.PACKAGE_NAMESPACE }} --cov-report=term --cov-report=xml:.cov/coverage.xml --cov-report=html:.cov/html
You can’t perform that action at this time.
0 commit comments