test pre-commit #1
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: Install precommit and test feature | |
on: | |
workflow_dispatch: | |
push: | |
branches_ignore: | |
- "main" | |
- "release/*" | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.7" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pre-commit pytest | |
pre-commit install -c tests/configs/strict.yaml | |
pre-commit run --all-files || true # For pre-commit initialization | |
- name: Test with pytest | |
run: | | |
python -m pytest tests/test_pre_commit.py |