Skip to content

Bump actions/setup-python from 4.7.1 to 5.1.0 #370

Bump actions/setup-python from 4.7.1 to 5.1.0

Bump actions/setup-python from 4.7.1 to 5.1.0 #370

Workflow file for this run

name: pr
on: pull_request
permissions:
contents: read
env:
MIN_PYTHON_VERSION: "3.8"
jobs:
lint:
uses: bridgecrewio/gha-reusable-workflows/.github/workflows/pre-commit.yaml@main
with:
python-version: "3.8"
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v4
with:
python-version: ${{ env.MIN_PYTHON_VERSION }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run Mypy
run: |
mypy
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v3
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run tests
run: pytest --strict-markers -W ignore::UserWarning tests