Skip to content

Commit

Permalink
Merge 6bd72a3 into 9e6d993
Browse files Browse the repository at this point in the history
  • Loading branch information
gliptak committed Apr 16, 2023
2 parents 9e6d993 + 6bd72a3 commit 4c3b8bd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/commit-ofxtools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
python-version: [3.8, 3.9, "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# - name: Cache pip
Expand All @@ -35,5 +35,10 @@ jobs:
run: black --check .
- name: Static analysis with mypy
run: mypy ofxtools tests
- name: Test with nose
run: nose2 -s tests --verbose --with-coverage --fail-fast --output-buffer
- name: Run tests
run: pytest --cov-report lcov:coverage.lcov --cov=ofxtools tests/
- run: find .
- name: Coveralls
uses: coverallsapp/github-action@v1
with:
path-to-lcov: coverage.lcov
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ test:
black --check .
mypy ofxtools
mypy tests
python `which nose2` -s tests --verbose --with-coverage --fail-fast --output-buffer
python `which pytest` --cov=ofxtools tests/

clean:
find . -name "*.py[co]" -o -name __pycache__ -exec rm -rf {} +;
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Make sure your changes haven't broken anything by running the tests:

.. code:: bash
python nose2 -s tests --verbose --with-coverage --fail-fast --output-buffer
python pytest --cov=ofxtools tests/
Or even better, use ``make``:

Expand Down
3 changes: 2 additions & 1 deletion requirements-development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
requests

# test running
nose2
pytest
pytest-cov
coverage
pylint
ipdb
Expand Down
7 changes: 0 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
[nose2]
verbosity=2
detailed-errors = 1
with-coverage = 1
nocapture = 1
cover-package = ofxtools

[flake8]
max-line-length = 88

0 comments on commit 4c3b8bd

Please sign in to comment.