Skip to content

Commit 2bf4eed

Browse files
authored
Run pyflakes on examples (#1062)
* Run pyflakes on examples It should catch some runtime issues. * Update .github/workflows/test.yml
1 parent ba8da84 commit 2bf4eed

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ jobs:
102102
uses: actions/setup-python@v4
103103
with:
104104
python-version: "3.10"
105+
- name: Upgrade pip
106+
run: |
107+
python -m pip install --upgrade pip
108+
pip install --upgrade wheel setuptools build
109+
- name: Install
110+
run: pip install --disable-pip-version-check pyflakes
105111
- name: Check examples
106112
run: ./check-examples.sh
107113
shell: bash

check-examples.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ if [ $? -ne 0 ]; then
55
echo -e "Failed to build examples"
66
exit 1
77
fi
8+
9+
pyflakes examples

0 commit comments

Comments
 (0)