From f5ca0d9b1a1f2649efb0e4a90f554d7e49717006 Mon Sep 17 00:00:00 2001 From: Christopher Doris Date: Sun, 12 May 2024 19:18:24 +0100 Subject: [PATCH] upgrade codecov action --- .github/workflows/tests.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 85316f1..956f22c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,16 +27,14 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest pytest-cov + pip install ruff pytest pytest-cov pip install -e . - - name: Lint with flake8 + - name: Lint with ruff run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + ruff format --check + ruff check - name: Test with pytest run: | - pytest --cov=src + pytest --cov=src test - name: Upload Coverage to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3