introduce EntityToAction #123
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: test build | |
| on: | |
| push: | |
| branches-ignore: ["stable"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: install ruff | |
| uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: "--version" | |
| - name: lint code | |
| run: ruff check --output-format=github --target-version=py311 | |
| - name: check code formatting | |
| run: ruff format --diff --target-version=py311 | |
| continue-on-error: true # Remove this once the project is formatted | |
| - name: install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: setup python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: "pyproject.toml" | |
| - name: install project | |
| run: uv sync --all-extras --dev | |
| - name: run tests | |
| run: uv run python -m pytest | |
| - name: build package | |
| run: uv build |