Skip to content

Commit ed3bdd0

Browse files
authored
Create main.yml
1 parent 6e726ca commit ed3bdd0

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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.5', '3.6', '3.7', '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 sdynpy
22+
run: pip install .[testing]
23+
- name: pycodestyle
24+
run: pycodestyle src/sdynpy
25+
- name: pylint
26+
run: python -m pylint --disable=C0103 --output-format=text src/sdynpy | tee lint.log || pylint-exit $?
27+
- name: pytest
28+
run: python -m pytest --verbose --cov=src/sdynpy --cov-report xml

0 commit comments

Comments
 (0)