From 3570cb738aa7449948fc960f7679bef7981543ca Mon Sep 17 00:00:00 2001 From: Guo Liyong Date: Thu, 23 Dec 2021 18:31:13 +0800 Subject: [PATCH] test exclude --- .github/workflows/ignore.list | 2 ++ .github/workflows/style_check.yml | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ignore.list diff --git a/.github/workflows/ignore.list b/.github/workflows/ignore.list new file mode 100644 index 000000000..dfbdb5956 --- /dev/null +++ b/.github/workflows/ignore.list @@ -0,0 +1,2 @@ +egs/librispeech/ASR/conformer_ctc/test_label_smoothing.py +egs/librispeech/ASR/conformer_ctc/test_subsampling.py diff --git a/.github/workflows/style_check.yml b/.github/workflows/style_check.yml index 2a743705a..47c37451f 100644 --- a/.github/workflows/style_check.yml +++ b/.github/workflows/style_check.yml @@ -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