diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4d55087..3b315f6 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -38,42 +38,3 @@ jobs: run: | pre-commit run --all-files --show-diff-on-failure --color=always -on: - merge: - branches: - - main - - dev - pull_request: - schedule: - - cron: "0 0 * * *" - -env: - DEFAULT_PYTHON: 3.9 - -jobs: - pre-commit: - runs-on: "ubuntu-latest" - name: Pre-commit - steps: - - name: Check out the repository - uses: actions/checkout@v4 - - - name: Set up Python ${{ env.DEFAULT_PYTHON }} - uses: actions/setup-python@v5.2.0 - with: - python-version: ${{ env.DEFAULT_PYTHON }} - - - name: Upgrade pip - run: | - pip install --constraint=.github/workflows/constraints.txt pip - pip --version - - - name: Install Python modules - run: | - pip install --constraint=.github/workflows/constraints.txt pre-commit black flake8 reorder-python-imports - - - name: Run pre-commit on all files - env: - SKIP: no-commit-to-branch - run: | - pre-commit run --all-files --show-diff-on-failure --color=always