Skip to content

Commit

Permalink
Merge pull request #171 from gliptak/nose2
Browse files Browse the repository at this point in the history
Run nose2 in GHA
  • Loading branch information
csingley committed Apr 16, 2023
2 parents b48443d + 3aa6c61 commit 9e6d993
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/commit-ofxtools.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: CI tests

on: [push, pull_request]
on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]
python-version: [3.8, 3.9, "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand All @@ -32,4 +36,4 @@ jobs:
- name: Static analysis with mypy
run: mypy ofxtools tests
- name: Test with nose
run: nosetests -dsv --nologcapture --with-coverage --cover-package ofxtools tests/*.py
run: nose2 -s tests --verbose --with-coverage --fail-fast --output-buffer
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 `which nosetests` -dsv --with-coverage --cover-package ofxtools
python nose2 -s tests --verbose --with-coverage --fail-fast --output-buffer
Or even better, use ``make``:

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[nosetests]
[nose2]
verbosity=2
detailed-errors = 1
with-coverage = 1
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
keywords=["ofx", "Open Financial Exchange"],
)

0 comments on commit 9e6d993

Please sign in to comment.