From 169a8010805fc08d77c4d41b4325e0fa65613395 Mon Sep 17 00:00:00 2001 From: Rory Yorke Date: Sat, 25 Jan 2025 11:45:18 +0200 Subject: [PATCH] Prototype pyflakes Github Action --- .github/workflows/pyflakes.yml | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/pyflakes.yml diff --git a/.github/workflows/pyflakes.yml b/.github/workflows/pyflakes.yml new file mode 100644 index 000000000..dc9dd1da1 --- /dev/null +++ b/.github/workflows/pyflakes.yml @@ -0,0 +1,35 @@ +# pyflakes on source, examples, and benchmarks + +name: Doctest + +on: [push, pull_request] + +jobs: + pyflakes-linux: + # pyflakes shouldn't be sensitive to platform + runs-on: ubuntu-latest + + steps: + - name: Checkout python-control + uses: actions/checkout@v3 + + - name: Setup environment + uses: actions/setup-python@v4 + python-version: 3.13 # todo: latest? + + - name: Install pyflakes + run: | + python -m pip install --upgrade pip + python -m pip install pyflakes + + - name: Run pyflakes on control library + run: | + pyflakes control + + - name: Run pyflakes on examples + run: | + pyflakes examples + + - name: Run pyflakes on benchmarks + run: | + pyflakes benchmarks