test exclude

This commit is contained in:
Guo Liyong 2021-12-23 18:31:13 +08:00
parent 54bcc167e1
commit 3570cb738a
2 changed files with 9 additions and 2 deletions

2
.github/workflows/ignore.list vendored Normal file
View File

@ -0,0 +1,2 @@
egs/librispeech/ASR/conformer_ctc/test_label_smoothing.py
egs/librispeech/ASR/conformer_ctc/test_subsampling.py

View File

@ -52,8 +52,13 @@ jobs:
working-directory: ${{github.workspace}}
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --show-source --statistics
flake8 .
while read -r line; do
exclude_list=${exclude_list}" $line";
done < .github/workflows/ignore.list
flake8 . --count --show-source --statistics --extend-exclude="${exclude_list}"
flake8 . --extend-exclude="${exclude_list}"
- name: Run black
shell: bash