build(deps-dev): bump the dev-dependencies group across 1 directory with 2 updates #212
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
| defaults: | |
| run: | |
| shell: "bash" | |
| name: "CI" | |
| on: | |
| push: | |
| branches: ["main"] | |
| tags: ["v*"] | |
| pull_request: | |
| branches: ["main"] | |
| concurrency: | |
| group: "${{ github.workflow }}-${{ github.head_ref || github.run_id }}" | |
| cancel-in-progress: true | |
| env: | |
| PYTHONUNBUFFERED: "1" | |
| jobs: | |
| dev: | |
| name: "Verify package is installed well" | |
| strategy: | |
| matrix: | |
| os: ["ubuntu-24.04", "macos-14"] | |
| runs-on: "${{ matrix.os }}" | |
| steps: | |
| - uses: "actions/[email protected]" | |
| - uses: "./.github/actions/install_python_and_poetry" | |
| with: | |
| cache-key-suffix: "-main" | |
| python-version-file: ".python-version" | |
| - name: "Install package" | |
| run: "poetry install --only main" | |
| - name: "Check that the poetry.lock file corresponds to the current version of pyproject.toml" | |
| if: "${{ matrix.os == 'ubuntu-24.04' }}" | |
| run: "poetry lock --check" | |
| - name: "Import package" | |
| run: "poetry run python3 -c 'from pre_commit_run_hook_entry.cli import main'" | |
| test: | |
| name: "Test package" | |
| runs-on: "ubuntu-24.04" | |
| steps: | |
| - uses: "actions/[email protected]" | |
| - id: "python_and_poetry" | |
| uses: "./.github/actions/install_python_and_poetry" | |
| with: | |
| cache-key-suffix: "-main-dev-test" | |
| python-version-file: ".python-version" | |
| - uses: "./.github/actions/run_pre_commit" | |
| with: | |
| python-version: "${{ steps.python_and_poetry.outputs.python-version }}" | |
| - uses: "./.github/actions/run_tox" | |
| with: | |
| python-path: "${{ steps.python_and_poetry.outputs.python-path }}" | |
| python-version: "${{ steps.python_and_poetry.outputs.python-version }}" | |
| use-coveralls: "true" | |
| coveralls-token: "${{ secrets.GITHUB_TOKEN }}" | |
| package: | |
| needs: ["test"] | |
| permissions: | |
| id-token: "write" | |
| uses: "./.github/workflows/ci_package.yml" | |
| release: | |
| needs: ["package"] | |
| if: "${{ startsWith(github.ref, 'refs/tags/') }}" | |
| uses: "./.github/workflows/ci_release.yml" | |
| secrets: | |
| release-token: "${{ secrets.GITHUB_TOKEN }}" |