Skip to content

Commit 984491e

Browse files
authored
Running CI lint and pre-commit on both min/max Python versions (#7)
1 parent 09ae233 commit 984491e

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,29 @@ jobs:
99
pre-commit:
1010
runs-on: ubuntu-latest
1111
if: github.event_name == 'pull_request' # pre-commit-ci/lite-action only runs here
12+
strategy:
13+
matrix:
14+
python-version: [3.11, 3.12] # Our min and max supported Python versions
1215
steps:
1316
- uses: actions/checkout@v4
1417
- uses: actions/setup-python@v5
1518
with:
16-
python-version: 3.12
19+
python-version: ${{ matrix.python-version }}
1720
- uses: pre-commit/action@v3.0.1
1821
- uses: pre-commit-ci/lite-action@v1.0.2
1922
if: always()
2023
lint:
2124
runs-on: ubuntu-latest
25+
strategy:
26+
matrix:
27+
python-version: [3.11, 3.12] # Our min and max supported Python versions
2228
steps:
2329
- uses: actions/checkout@v4
2430
- name: Set up uv
25-
run: curl -LsSf https://astral.sh/uv/install.sh | sh
26-
- run: uv sync
31+
run: |-
32+
curl -LsSf https://astral.sh/uv/install.sh | sh
33+
uv python install ${{ matrix.python-version }}
34+
- run: uv sync --python-preference=only-managed
2735
- run: uv run refurb ldp tests
2836
- run: uv run pylint ldp tests
2937
test:

0 commit comments

Comments
 (0)