Skip to content

Commit

Permalink
upgrade codecov action
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Doris committed May 12, 2024
1 parent 641701f commit f5ca0d9
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f5ca0d9

Please sign in to comment.