Skip to content

feat: Migrate to UV #76

feat: Migrate to UV

feat: Migrate to UV #76

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-22.04
container:
image: ghcr.io/ansys/pymapdl/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:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
- name: Install uv and create venv
run: |
python -m pip install --upgrade pip
pip install uv
- name: Install project dependencies
run: |
uv pip install --system .[tests]
uv pip install --system 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
# - uses: codecov/codecov-action@v5
# name: 'Upload coverage to CodeCov'
# with:
# token: ${{ secrets.CODECOV_TOKEN }}