Skip to content

chore(deps): update dependency click to v8.3.3 [security] #473

chore(deps): update dependency click to v8.3.3 [security]

chore(deps): update dependency click to v8.3.3 [security] #473

Workflow file for this run

name: PR
on:
pull_request:
branches:
- main
paths:
- ni_python_styleguide/**
- poetry.lock
- pyproject.toml
- docs/Coding-Conventions.md
- .github/workflows/PR.yml
workflow_call:
workflow_dispatch:
jobs:
checks:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: [3.9, 3.14] # oldest supported and latest tested
steps:
- name: Check out repo
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: ni/python-actions/setup-python@a2554c7e5680982d3355677b2290e48b60678744 # v0.8.0
with:
python-version: ${{ matrix.python-version }}
- uses: ni/python-actions/setup-poetry@a2554c7e5680982d3355677b2290e48b60678744 # v0.8.0
- uses: ni/python-actions/analyze-project@a2554c7e5680982d3355677b2290e48b60678744 # v0.8.0
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: [3.9, '3.10', 3.11, 3.12, 3.13, 3.14, 3.14t]
steps:
- name: Check out repo
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up Python
id: setup-python
uses: ni/python-actions/setup-python@a2554c7e5680982d3355677b2290e48b60678744 # v0.8.0
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: ni/python-actions/setup-poetry@a2554c7e5680982d3355677b2290e48b60678744 # v0.8.0
- name: Cache virtualenv
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: .venv
key: nps-${{ runner.os }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Install the Package
run: poetry install -v
- name: Run tests
run: poetry run pytest -v
- name: Install package into separate venv
shell: bash
run: |
venv_dir="$RUNNER_TEMP/dog_food_venv"
python3 -m venv "${venv_dir}"
if [[ "$RUNNER_OS" == "Windows" ]]; then
binary_folder_name="Scripts"
else
binary_folder_name="bin"
fi
DOG_FOOD_VENV_BIN="${venv_dir}/${binary_folder_name}"
echo "DOG_FOOD_VENV_BIN=${venv_dir}/${binary_folder_name}" >> "$GITHUB_ENV"
${DOG_FOOD_VENV_BIN}/pip install .
- name: Lint our own package
shell: bash
run: |
echo "We expect to have to format before linting passes."
${DOG_FOOD_VENV_BIN}/nps format .
${DOG_FOOD_VENV_BIN}/nps lint .