Skip to content

Commit afb2a55

Browse files
authored
Merge pull request #1 from mrbuche/main
testing workflow
2 parents 6e726ca + f76c6cc commit afb2a55

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: main
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
7+
workflow_dispatch:
8+
jobs:
9+
test:
10+
runs-on: ubuntu-22.04
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python-version: ['3.8', '3.9', '3.10']
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: install
22+
run: pip install .[testing]
23+
- name: pylint
24+
run: python -m pylint --output-format=text src/sdynpy | tee lint.log || pylint-exit $?
25+
- name: pytest
26+
run: python -m pytest --verbose --cov=src/sdynpy --cov-report xml

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ def get_ui_files(directory):
6262
'jinja2>=3.0', 'nbsphinx',
6363
'sphinx', 'sphinx-rtd-theme', 'sphinxcontrib-bibtex',
6464
'sphinx-copybutton'],
65-
'testing': ['pytest', 'pytest-cov'],
65+
'testing': ['pycodestyle', 'pylint', 'pytest', 'pytest-cov'],
6666
'all': ['docutils<0.18,>=0.14', 'ipykernel', 'ipython',
67-
'jinja2>=3.0', 'nbsphinx', 'pytest', 'pytest-cov',
67+
'jinja2>=3.0', 'nbsphinx',
68+
'pycodestyle', 'pylint', 'pytest', 'pytest-cov',
6869
'sphinx', 'sphinx-rtd-theme', 'sphinxcontrib-bibtex']},
6970
classifiers=['Natural Language :: English',
7071
'Operating System :: Microsoft :: Windows :: Windows 10'

0 commit comments

Comments
 (0)