Skip to content

Bump bandit from 1.8.0 to 1.8.2 #276

Bump bandit from 1.8.0 to 1.8.2

Bump bandit from 1.8.0 to 1.8.2 #276

Workflow file for this run

name: pytest windows
on: [pull_request, workflow_dispatch]
env:
PYTHONPATH: 'D:\a\sz-sdk-python\sz-sdk-python\src'
permissions:
contents: read
jobs:
pytest-windows:
name: "pytest OS: ${{ matrix.os }}; Python ${{ matrix.python-version }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m venv .\\venv
.\\venv\\Scripts\\activate
python -m pip install --upgrade pip
python -m pip install --requirement requirements.txt
python -m pip install psutil pytest pytest-cov pytest-schema
- if: matrix.python-version == '3.8' || matrix.python-version == '3.9' || matrix.python-version == '3.10'
name: Install python libraries for python 3.8, 3.9, and 3.10
run: |
.\\venv\\Scripts\\activate
python -m pip install typing_extensions
- name: Run pytest on tests
run: |
.\\venv\\Scripts\\activate
pytest tests/ --verbose --capture=no --cov=src
- name: Rename coverage file
env:
COVERAGE_FILE: "coverage.${{ matrix.python-version }}"
run: |
Rename-Item -Path.coverage -NewName "$env:COVERAGE_FILE"
- name: Store coverage file
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.python-version }}
path: coverage.${{ matrix.python-version }}
coverage:
name: Coverage
needs: pytest-windows
permissions:
pull-requests: write
contents: write
uses: senzing-factory/build-resources/.github/workflows/python-coverage-comment.yaml@v2