Skip to content

Commit

Permalink
Update pre-commit.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kazewong authored Nov 28, 2023
1 parent 2562fb4 commit 7e8e15a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,23 @@ on:
branches: [main]

jobs:

pre-commit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install .
- uses: pre-commit/[email protected]

0 comments on commit 7e8e15a

Please sign in to comment.