Bump pre-commit from 2.21.0 to 3.4.0 #305
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pr | |
on: pull_request | |
permissions: read-all | |
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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4 | |
with: | |
python-version: 3.7 | |
- 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.7', '3.8', '3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v3 | |
with: | |
python-version: ${{ matrix.python }} | |
allow-prereleases: true | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements-dev.txt | |
- name: Sets env var for release | |
if: ${{ matrix.os == 'macos-latest' && matrix.python == '3.7' }} | |
run: | | |
# NO_PROXY is needed to call requests API within a forked process | |
# when using macOS and python version 3.7 | |
echo "NO_PROXY='*'" >> "$GITHUB_ENV" | |
- name: Run tests | |
run: pytest --strict-markers -W ignore::UserWarning tests |