Fix README.md #12
This file contains hidden or 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: Pre Commit Check | |
| "on": | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Create and activate virtual environment | |
| run: | | |
| python3.11 -m venv venv | |
| source venv/bin/activate | |
| echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV | |
| echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH | |
| - name: Upgrade pip and install dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install -e ".[all]" | |
| pip install pre-commit | |
| - name: Run pre-commit | |
| run: | | |
| SKIP=no-commit-to-branch pre-commit run --all-files | |
| shell: bash |