Skip to content

ci: bump astral-sh/setup-uv from 7.1.3 to 7.1.4 (#117) #540

ci: bump astral-sh/setup-uv from 7.1.3 to 7.1.4 (#117)

ci: bump astral-sh/setup-uv from 7.1.3 to 7.1.4 (#117) #540

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
permissions:
contents: read
packages: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-tests:
name: Build tests
runs-on: ubuntu-latest
container:
image: ghcr.io/ansys/mapdl:v22.2-ubuntu@sha256:024c587f4a8190e99cc3f08a2dc231583032e784a8ef7d7659f8dd9748116697
options: -u=0:0 --entrypoint /bin/bash
credentials:
username: ${{ secrets.GH_USERNAME }}
password: ${{ secrets.GH_TOKEN }}
env:
ANSYS_LOCAL: true
ON_UBUNTU: true
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
persist-credentials: false
- name: Set up uv
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # 7.1.4
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
enable-cache: false
- 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
env:
PACKAGE_NAMESPACE: ${{ env.PACKAGE_NAMESPACE }}
run: |
uv run pytest \
-vx \
--cov=${PACKAGE_NAMESPACE} --cov-report=term --cov-report=xml:.cov/coverage.xml --cov-report=html:.cov/html