Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 18 additions & 13 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v7

- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.15'

- name: Cache pip packages
uses: actions/cache@v6
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

# Before setup-python: the cleanup wipes $AGENT_TOOLSDIRECTORY (the tool
# cache setup-python installs into), which used to leave `python` as the
# image's 3.12 with pip installing over the system packages.
- name: Free up disk space
run: |
echo "Disk space before cleanup:"
Expand All @@ -72,6 +62,21 @@ jobs:
echo "Disk space after cleanup:"
df -h

# 3.14: ansible-core 2.21 fails to import on 3.15
# (module 'dataclasses' has no attribute '_is_type').
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.14'

- name: Cache pip packages
uses: actions/cache@v6
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
Loading