Merge pull request #60 from tisonkun/uv #102
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: Linting | |
| on: | |
| push: | |
| branches: [ trunk ] | |
| paths: | |
| - 'v3/**/*.py' | |
| - '**/ruff.toml' | |
| - 'v3/pyproject.toml' | |
| pull_request: | |
| branches: [ trunk ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: v3/pyproject.toml | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Install dependencies | |
| working-directory: v3 # Set the working directory to v3 where pyproject.toml is located | |
| run: uv sync --all-extras --dev | |
| - name: Testing with ruff | |
| working-directory: v3 # Ensure ruff runs in the correct directory | |
| run: uv run ruff check |