Skip to content

Commit

Permalink
Merge pull request #68 from espdev/fix-coveralls-github-workflow
Browse files Browse the repository at this point in the history
Update dependencies, flake8 and CI workflow
  • Loading branch information
espdev committed Jun 12, 2023
2 parents 84b524a + da290df commit 6e32be8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .flake8
@@ -1,3 +1,6 @@
[flake8]
max-line-length = 120
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s
exclude =
.venv
docs
build
8 changes: 4 additions & 4 deletions .github/workflows/main.yaml
Expand Up @@ -28,17 +28,17 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install flake8 flake8-colors
python -m pip install -e .[tests]
- name: Unit Tests
run: pytest --color=yes --cov=csaps --cov-report=term
run: pytest -v --color=yes --cov=csaps --cov-report=term --cov-report=lcov:coverage.info

- name: Coveralls
if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.11' }}
uses: AndreMiras/coveralls-python-action@develop
uses: coverallsapp/github-action@v2
with:
parallel: false
format: lcov
file: coverage.info

- name: flake8 Static Analysis
if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.11' }}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -34,7 +34,7 @@ def _get_long_description():
],
extras_require={
'docs': ['sphinx >=3.0.0, <7', 'matplotlib >=3.1', 'numpydoc', 'm2r2'],
'tests': ['pytest', 'coverage <8', 'pytest-cov', 'coveralls'],
'tests': ['pytest', 'coverage <8', 'pytest-cov', 'coveralls', 'flake8'],
},
package_data={"csaps": ["py.typed"]},
url='https://github.com/espdev/csaps',
Expand Down

0 comments on commit 6e32be8

Please sign in to comment.