feat: Migrate to UV #65
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: | | |
| pip install --upgrade pip | |
| pip install uv | |
| - name: Install project dependencies | |
| run: | | |
| uv run pip install .[tests] | |
| uv run 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 | |
| # - uses: codecov/codecov-action@v5 | |
| # name: 'Upload coverage to CodeCov' | |
| # with: | |
| # token: ${{ secrets.CODECOV_TOKEN }} |