-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.01 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: main
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- name: python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: install
run: pip install .[testing]
- name: pylint
run: python -m pylint --output-format=text src/sdynpy | tee lint.log || pylint-exit $?
- name: pytest
run: python -m pytest --verbose --cov=src/sdynpy --cov-report xml
- name: coveralls
run: |
python -m pip install coveralls
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: codecov
uses: codecov/codecov-action@v2
with:
name: codecov-umbrella
verbose: true