Skip to content

Nxdrive-2929: Upgrade Python from 3.9.5 to 3.12.3 #3011

Nxdrive-2929: Upgrade Python from 3.9.5 to 3.12.3

Nxdrive-2929: Upgrade Python from 3.9.5 to 3.12.3 #3011

Workflow file for this run

name: Dead code
on:
pull_request:
paths:
- "**/*.py"
jobs:
dead-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12 # XXX_PYTHON
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('tools/deps/requirements-tests.txt', 'tools/deps/requirements-tox.txt') }}
restore-keys: ${{ runner.os }}-pip-${{ hashFiles('tools/deps/requirements-tests.txt', 'tools/deps/requirements-tox.txt') }}
- uses: actions/cache@v4
with:
path: .tox
key: ${{ runner.os }}-tox-${{ hashFiles('tools/deps/requirements-tests.txt', 'tools/deps/requirements-tox.txt') }}
restore-keys: ${{ runner.os }}-tox-${{ hashFiles('tools/deps/requirements-tests.txt', 'tools/deps/requirements-tox.txt') }}
- name: Install dependencies
run: python -m pip install -r tools/deps/requirements-tox.txt
- name: Dead code check
run: tox -e cleanup