utils.can_put_annotation : 引数の追加 (#728)
#141
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: Python tests and lint | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv and set the python version | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| version: "0.6.14" | |
| - name: Install the project | |
| run: uv sync --all-extras | |
| - name: Test | |
| env: | |
| # 以下の環境変数がないとテストに失敗するため、ダミーの値を設定する | |
| ANNOFAB_PAT: "foo" | |
| run: | | |
| uv run pytest -n auto -m "not access_webapi" | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv and set the python version | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: 3.12 | |
| version: "0.6.14" | |
| - name: Install the project | |
| run: uv sync --all-extras | |
| - name: Lint | |
| run: | | |
| make lint | |