v1.10.2 #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: Publish Python Package | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - name: Install project | |
| run: uv sync --all-extras --dev | |
| - name: Lint with Ruff | |
| run: uv run ruff check src/ | |
| - name: Run tests | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.TESTS_GITHUB_TOKEN }} | |
| run: uv run pytest --cov=./ --cov-report=xml --durations=20 tests/ | |
| - name: Make sure the code can run | |
| run: | | |
| uv run folio-migration-tools -h | |
| - name: Run the nox safety session | |
| run: | | |
| uvx nox -rs safety | |
| deploy: | |
| runs-on: ubuntu-latest | |
| needs: [test] | |
| environment: release | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b | |
| with: | |
| python-version: "3.13" | |
| enable-cache: true | |
| - name: Install project | |
| run: uv sync --all-extras --dev | |
| - name: Build wheel | |
| run: | | |
| uv build | |
| - name: Publish | |
| run: uv publish |