Skip to content

feat: technical review #240

feat: technical review

feat: technical review #240

Workflow file for this run

---
name: MAPDL dependent tests for paths tool
on:
pull_request:
workflow_dispatch:
push:
tags:
- '*'
branches:
- main
env:
PACKAGE_NAME: ansys-tools-common
MAIN_PYTHON_VERSION: 3.13
jobs:
build-tests:
runs-on: ubuntu-latest
container:
image: ghcr.io/ansys/mapdl:v22.2-ubuntu
options: -u=0:0 --entrypoint /bin/bash
credentials:
username: ${{ secrets.GH_USERNAME }}
password: ${{ secrets.GH_TOKEN }}
env:
ANSYS_LOCAL: true
ON_UBUNTU: true
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
- name: Set up uv
uses: astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # 7.0.0
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
- name: Install project dependencies
run: |
uv sync --group tests
- name: Install test package containing entrypoint
run: |
uv pip install tests/launcher/pkg_with_entrypoint
- name: Run tests
run: |
uv run pytest \
-vx \
--cov=${{ env.PACKAGE_NAMESPACE }} --cov-report=term --cov-report=xml:.cov/coverage.xml --cov-report=html:.cov/html