You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/pr_tests_gpu.yml
+44Lines changed: 44 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,51 @@ env:
28
28
PIPELINE_USAGE_CUTOFF: 1000000000# set high cutoff so that only always-test pipelines run
29
29
30
30
jobs:
31
+
check_code_quality:
32
+
runs-on: ubuntu-22.04
33
+
steps:
34
+
- uses: actions/checkout@v3
35
+
- name: Set up Python
36
+
uses: actions/setup-python@v4
37
+
with:
38
+
python-version: "3.8"
39
+
- name: Install dependencies
40
+
run: |
41
+
python -m pip install --upgrade pip
42
+
pip install .[quality]
43
+
- name: Check quality
44
+
run: make quality
45
+
- name: Check if failure
46
+
if: ${{ failure() }}
47
+
run: |
48
+
echo "Quality check failed. Please ensure the right dependency versions are installed with 'pip install -e .[quality]' and run 'make style && make quality'" >> $GITHUB_STEP_SUMMARY
49
+
50
+
check_repository_consistency:
51
+
needs: check_code_quality
52
+
runs-on: ubuntu-22.04
53
+
steps:
54
+
- uses: actions/checkout@v3
55
+
- name: Set up Python
56
+
uses: actions/setup-python@v4
57
+
with:
58
+
python-version: "3.8"
59
+
- name: Install dependencies
60
+
run: |
61
+
python -m pip install --upgrade pip
62
+
pip install .[quality]
63
+
- name: Check repo consistency
64
+
run: |
65
+
python utils/check_copies.py
66
+
python utils/check_dummies.py
67
+
python utils/check_support_list.py
68
+
make deps_table_check_updated
69
+
- name: Check if failure
70
+
if: ${{ failure() }}
71
+
run: |
72
+
echo "Repo consistency check failed. Please ensure the right dependency versions are installed with 'pip install -e .[quality]' and run 'make fix-copies'" >> $GITHUB_STEP_SUMMARY
0 commit comments