Skip to content

docs(README): add Instruction to run via uvx #567

docs(README): add Instruction to run via uvx

docs(README): add Instruction to run via uvx #567

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Python
id: py
uses: actions/setup-python@v5
with:
python-version: "3.7 - 3.13"
update-environment: true
- name: Upgrade pip
run: |
python -m pip install --upgrade pip setuptools
- name: Install dependencies
run: |
python -m pip install -r requirements.txt
- name: Import tests
run: |
python -c 'import nvitop'
python -m nvitop --version
python -m nvitop --help
python -m nvitop.select --version
python -m nvitop.select --help
- name: Install dependencies for nvitop-exporter
run: |
python -m pip install -r nvitop-exporter/requirements.txt
- name: Import tests for nvitop-exporter
run: |
(
cd nvitop-exporter &&
python -c 'import nvitop_exporter' &&
python -m nvitop_exporter --version &&
python -m nvitop_exporter --help
)
- name: Install linters
run: |
python -m pip install --upgrade pre-commit pylint[spelling] mypy typing-extensions
- name: pre-commit
run: |
python -m pre_commit --version
python -m pre_commit install --install-hooks
python -m pre_commit run --all-files