File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : ci
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ fail-fast : false
14+ matrix :
15+ python : ["3.10"]
16+
17+ steps :
18+ - uses : actions/checkout@v1
19+ - name : Set up Python ${{ matrix.python }}
20+ uses : actions/setup-python@v1
21+ with :
22+ python-version : ${{ matrix.python }}
23+ - name : Install dependencies
24+ run : |
25+ python setup.py install
26+ python -m pip install --upgrade pip
27+ pip install -r requirements.txt
28+ - name : Test with pytest & coverage
29+ run : python -m pytest --cov=src --cov-report term --cov-report html --cov-report xml
30+ # TODO requires activation for this repository on codecov website first.
31+ # - name: Upload coverage to Codecov
32+ # uses: codecov/codecov-action@v3
33+
34+ lint :
35+ runs-on : ubuntu-latest
36+ steps :
37+ - uses : actions/checkout@v1
38+ - name : Set up Python
39+ uses : actions/setup-python@v1
40+ with :
41+ python-version : " 3.10"
42+ - name : Install dependencies
43+ run : |
44+ python -m pip install --upgrade pip
45+ pip install -r requirements.txt
46+ - name : Lint with pylint
47+ run : pylint $(git ls-files '*.py')
You can’t perform that action at this time.
0 commit comments