From 72fe5f6563a8dca664e00c39300c8f6799ae1faf Mon Sep 17 00:00:00 2001 From: Jeff Newman Date: Tue, 16 Jan 2024 12:19:21 -0600 Subject: [PATCH] ruff tests in CI --- .github/workflows/run-tests.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 04dec84..ae23237 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -18,7 +18,7 @@ jobs: strategy: matrix: os: ["ubuntu-latest", "macos-latest", "windows-latest"] - python-version: ["3.9", "3.10"] + python-version: ["3.9", "3.10", "3.11"] defaults: run: shell: bash -l {0} @@ -44,10 +44,11 @@ jobs: conda list - name: Lint with Ruff run: | + # code quality check # stop the build if there are Python syntax errors or undefined names - ruff check . --select=E9,F63,F7,F82 --statistics - # exit-zero treats all errors as warnings. - ruff check . --exit-zero --statistics + ruff check . --select=E9,F63,F7,F82 --no-fix + # stop the build for any other configured Ruff linting errors + ruff check . --show-fixes --exit-non-zero-on-fix - name: Test with pytest run: | python -m pytest