diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..143af91 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,23 @@ +# SPDX-FileCopyrightText: 2023 Alec Delaney +# SPDX-License-Identifier: MIT + +on: + push + +jobs: + run-pre-commit: + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v4 + with: + submodules: true + - name: Install Python 3.X + uses: actions/setup-python@v5 + - name: Install dependencies + run: | + pip install -r requirements.txt + pip install -r requirements-dev.txt + - name: Run pre-commit + run: | + pre-commit run --all-files