Skip to content

Commit 01137be

Browse files
committed
Set up Python in CI workflow
Add a setup-python step to the check workflow using actions/setup-python@v6. The step uses the matrix.python-version and enables pip caching so the subsequent 'pip install -e ".[dev]"' runs with the correct interpreter and faster dependency installs.
1 parent bbf268b commit 01137be

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/check.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v6
1919

20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v6
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
cache: pip
25+
2026
- name: Install Dev Tools
2127
run: pip install -e ".[dev]"
2228

0 commit comments

Comments
 (0)