chore(deps): update pre-commit hook pre-commit/pre-commit-hooks to v4.5.0 #243
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: pytest-pip | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.7, 3.11] | |
os: [ubuntu-latest, windows-latest] | |
name: "Test: Python ${{ matrix.python-version }}, pip, ${{ matrix.os }}" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Test with pytest | |
run: | | |
pytest tests | |
version-check: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.6] | |
os: [ubuntu-20.04] | |
name: "Version Check: Python ${{ matrix.python-version }}" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Cookiecutter | |
run: | | |
python -m pip install --upgrade pip | |
pip install cookiecutter~=1.7.2 | |
- name: Run Version Check | |
run: | | |
python tests/version_check.py --fail |