Skip to content

Commit 442951d

Browse files
authored
Merge pull request #1200 from consideRatio/pr/rely-on-pre-commit.ci
ci: stop running pre-commit in gha, rely on pre-commit.ci
2 parents 4a5b854 + ea1fbcd commit 442951d

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -39,38 +39,7 @@ env:
3939
GIT_AUTHOR_NAME: CI User
4040

4141
jobs:
42-
pre-commit:
43-
runs-on: ubuntu-22.04
44-
45-
strategy:
46-
fail-fast: false
47-
matrix:
48-
python_version: ["3.9"]
49-
50-
steps:
51-
- uses: actions/checkout@v3
52-
- uses: actions/setup-python@v4
53-
with:
54-
python-version: "${{ matrix.python_version }}"
55-
56-
# There will almost never be a cache hit on the cache key when this job is
57-
# run, as it is the first of all jobs in this workflow. The subsequent
58-
# jobs in this workflow can rely on this cache though.
59-
- name: Save pip's install cache on job completion
60-
uses: actions/cache@v3
61-
with:
62-
path: ~/.cache/pip
63-
key: "${{ github.run_id }}-${{ matrix.python_version }}"
64-
65-
- name: Install dependencies
66-
run: |
67-
pip install -r dev-requirements.txt
68-
pip freeze
69-
70-
- run: pre-commit run --all-files
71-
7242
test:
73-
needs: pre-commit
7443
runs-on: ubuntu-${{ matrix.ubuntu_version }}
7544

7645
strategy:
@@ -103,12 +72,6 @@ jobs:
10372
with:
10473
python-version: "${{ matrix.python_version }}"
10574

106-
- name: Restore pip's install cache from previous job
107-
uses: actions/cache@v3
108-
with:
109-
path: ~/.cache/pip
110-
key: "${{ github.run_id }}-${{ matrix.python_version }}"
111-
11275
- name: Install dependencies
11376
run: |
11477
pip install -r dev-requirements.txt

0 commit comments

Comments
 (0)