Skip to content

Commit f6b08cd

Browse files
CI: Run flake8
Unlike the test action, this *does* use the builtin virtual-env-based setup-python, since we do not need any system-level python packages, so using this (and install flake8 using pip) is easier and always results in the latest flake8 version. Flake8 is run under Python3.5, so it should error out when any constructs are used that are not supported by 3.5 yet.
1 parent 972f96a commit f6b08cd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/testing.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,20 @@ jobs:
6060
- name: Run tests
6161
run: |
6262
dbus-launch python${{ matrix.python-version }} -m unittest
63+
64+
flake8:
65+
name: Run code linting and checks
66+
runs-on: ubuntu-latest
67+
steps:
68+
- name: Prepare repo
69+
uses: actions/checkout@v2
70+
- name: Set up Python
71+
uses: actions/setup-python@v1
72+
with:
73+
python-version: '3.5'
74+
- name: Install flake8
75+
run: |
76+
pip install flake8
77+
- name: Run flake8
78+
run: |
79+
flake8 --count --show-source --statistics

0 commit comments

Comments
 (0)