diff --git a/.github/workflows/python.yml b/.github/workflows/ci.yml similarity index 92% rename from .github/workflows/python.yml rename to .github/workflows/ci.yml index be4fe11e..e86a69a4 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,9 @@ -name: python +name: CI on: [push, pull_request] env: UV_VERSION: "0.6.9" - PYTHON_VERSION: "3.11" jobs: test: @@ -42,7 +41,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: ${{ env.PYTHON_VERSION }} + python-version-file: ".python-version" - name: Install dependencies run: uv sync --locked - name: Test with Nox @@ -58,6 +57,6 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: ${{ env.PYTHON_VERSION }} + python-version-file: ".python-version" - name: Validate Lockfile Up-to-date run: uv lock --check diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index c52888f4..c508044b 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -9,7 +9,6 @@ on: env: UV_VERSION: "0.6.9" - PYTHON_VERSION: "3.11" jobs: deploy: @@ -22,7 +21,7 @@ jobs: version: ${{ env.UV_VERSION }} - uses: actions/setup-python@v5 with: - python-version: ${{ env.PYTHON_VERSION }} + python-version-file: ".python-version" - name: Install dependencies run: uv sync --locked - name: Publish Docs diff --git a/README.md b/README.md index d59690c2..4a21c988 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Ruff][ruff-badge]](https://github.com/astral-sh/ruff) [![Type checked with mypy][mypy-badge]](https://mypy-lang.org/) -[github-actions-badge]: https://github.com/johnthagen/python-blueprint/workflows/python/badge.svg +[github-actions-badge]: https://github.com/johnthagen/python-blueprint/workflows/ci/badge.svg [uv-badge]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json [nox-badge]: https://img.shields.io/badge/%F0%9F%A6%8A-Nox-D85E00.svg [ruff-badge]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json @@ -210,7 +210,7 @@ installed package to indicate that inline type annotations should be checked. Continuous integration is provided by [GitHub Actions](https://github.com/features/actions). This runs all tests, lints, and type checking for every commit and pull request to the repository. -GitHub Actions is configured in [`.github/workflows/python.yml`](./.github/workflows/python.yml). +GitHub Actions is configured in [`.github/workflows/ci.yml`](./.github/workflows/ci.yml). # Documentation