Skip to content

Commit 528978a

Browse files
authored
Refactor GitHub Actions (#259)
* Refactor GitHub Actions * Replace PYTHON_VERSION with python-version-file: ".python-version"
1 parent 8d6ac3e commit 528978a

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: python
1+
name: CI
22

33
on: [push, pull_request]
44

55
env:
66
UV_VERSION: "0.6.9"
7-
PYTHON_VERSION: "3.11"
87

98
jobs:
109
test:
@@ -42,7 +41,7 @@ jobs:
4241
- name: Set up Python
4342
uses: actions/setup-python@v5
4443
with:
45-
python-version: ${{ env.PYTHON_VERSION }}
44+
python-version-file: ".python-version"
4645
- name: Install dependencies
4746
run: uv sync --locked
4847
- name: Test with Nox
@@ -58,6 +57,6 @@ jobs:
5857
- name: Set up Python
5958
uses: actions/setup-python@v5
6059
with:
61-
python-version: ${{ env.PYTHON_VERSION }}
60+
python-version-file: ".python-version"
6261
- name: Validate Lockfile Up-to-date
6362
run: uv lock --check

.github/workflows/pages.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99

1010
env:
1111
UV_VERSION: "0.6.9"
12-
PYTHON_VERSION: "3.11"
1312

1413
jobs:
1514
deploy:
@@ -22,7 +21,7 @@ jobs:
2221
version: ${{ env.UV_VERSION }}
2322
- uses: actions/setup-python@v5
2423
with:
25-
python-version: ${{ env.PYTHON_VERSION }}
24+
python-version-file: ".python-version"
2625
- name: Install dependencies
2726
run: uv sync --locked
2827
- name: Publish Docs

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Ruff][ruff-badge]](https://github.com/astral-sh/ruff)
77
[![Type checked with mypy][mypy-badge]](https://mypy-lang.org/)
88

9-
[github-actions-badge]: https://github.com/johnthagen/python-blueprint/workflows/python/badge.svg
9+
[github-actions-badge]: https://github.com/johnthagen/python-blueprint/workflows/ci/badge.svg
1010
[uv-badge]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json
1111
[nox-badge]: https://img.shields.io/badge/%F0%9F%A6%8A-Nox-D85E00.svg
1212
[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.
210210
Continuous integration is provided by [GitHub Actions](https://github.com/features/actions). This
211211
runs all tests, lints, and type checking for every commit and pull request to the repository.
212212

213-
GitHub Actions is configured in [`.github/workflows/python.yml`](./.github/workflows/python.yml).
213+
GitHub Actions is configured in [`.github/workflows/ci.yml`](./.github/workflows/ci.yml).
214214

215215
# Documentation
216216

0 commit comments

Comments
 (0)