Update astral-sh/setup-uv action to v8.3.2 #1159
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: Continuous Integration | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "*" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: Build ZOSPy | |
| strategy: | |
| matrix: | |
| python: [ "3.10", "3.11", "3.12", "3.13", "3.14" ] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up uv | |
| id: setup-uv | |
| uses: astral-sh/setup-uv@v8.3.2 | |
| - name: Build package | |
| run: uv build --python ${{ matrix.python }} | |
| - name: Install package | |
| run: uv venv --python ${{ matrix.python }} && uv pip install --find-links ./dist/ zospy | |
| lint: | |
| runs-on: ubuntu-latest | |
| name: Lint ZOSPy | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up uv | |
| id: setup-uv | |
| uses: astral-sh/setup-uv@v8.3.2 | |
| - name: Lint code | |
| run: | | |
| uvx hatch check code && uvx hatch check fmt | |
| - name: Lint docstrings | |
| if: always() # Run even if previous step fails | |
| run: | | |
| uvx pydocstringformatter --exit-code examples scripts tests zospy |