1515
1616jobs :
1717 build-tests :
18- name : Build and Testing
1918 runs-on : ubuntu-22.04
2019 container :
21- image : ghcr.io/ansys/pymapdl/mapdl:v22.2-ubuntu
22- options : " -u=0:0 --entrypoint /bin/bash"
23- credentials :
24- username : ${{ secrets.GH_USERNAME }}
25- password : ${{ secrets.GH_TOKEN }}
20+ image : ghcr.io/ansys/pymapdl/mapdl:v22.2-ubuntu
21+ options : " -u=0:0 --entrypoint /bin/bash"
22+ credentials :
23+ username : ${{ secrets.GH_USERNAME }}
24+ password : ${{ secrets.GH_TOKEN }}
2625 env :
27- ANSYS_LOCAL : true
28- ON_UBUNTU : true
26+ ANSYS_LOCAL : true
27+ ON_UBUNTU : true
2928
3029 steps :
31- - uses : actions/checkout@v4
32- - name : Setup Python
33- uses : actions/setup-python@v5
34- with :
35- python-version : ${{ env.MAIN_PYTHON_VERSION }}
36- - name : Install uv and create venv
37- shell : bash
38- run : |
39- python -m pip install --upgrade pip
40- pip install uv
41- uv venv .mapdl_venv
42- source .mapdl_venv/bin/activate
43-
44- - name : Install project dependencies
45- shell : bash
46- run : |
47- source .mapdl_venv/bin/activate
48- uv pip install -e .[tests]
49- uv pip install tests/launcher/pkg_with_entrypoint
50-
51- - name : Unit testing
52- shell : bash
53- run : |
54- source .mapdl_venv/bin/activate
55- uv run python -m uv pytest -vx --cov=${{ env.PACKAGE_NAMESPACE }} --cov-report=term --cov-report=xml:.cov/coverage.xml --cov-report=html:.cov/html
56-
57- - name : Upload coverage reports to Codecov
58- uses : codecov/codecov-action@v5
59- with :
60- files : .cov/coverage.xml
30+ - uses : actions/checkout@v4
31+
32+ - name : Check python version inside container
33+ run : |
34+ python3 --version
35+ which python3
36+
37+ - name : Install uv and create venv
38+ shell : bash
39+ run : |
40+ python3 -m pip install --upgrade pip
41+ pip3 install uv
42+ uv venv .mapdl_venv
43+ uv pip install -e .[tests]
44+ uv pip install tests/launcher/pkg_with_entrypoint
45+
46+ - name : Run unit tests
47+ shell : bash
48+ run : |
49+ uv run pytest -vx --cov=${{ env.PACKAGE_NAMESPACE }} --cov-report=term --cov-report=xml:.cov/coverage.xml --cov-report=html:.cov/html
50+
51+ - name : Upload coverage reports to Codecov
52+ uses : codecov/codecov-action@v5
53+ with :
54+ files : .cov/coverage.xml
0 commit comments