File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : c3po pylint and pytest
5+
6+ on : [push]
7+
8+ permissions :
9+ contents : read
10+
11+ jobs :
12+ build :
13+
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+ - name : Set up Python 3.10
19+ uses : actions/setup-python@v3
20+ with :
21+ python-version : " 3.10"
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ pip install -r requirements.txt
26+ pip install pylint
27+ - name : Analysing the code with pylint
28+ run : |
29+ pylint $(git ls-files '*.py')
30+ - name : Test with pytest
31+ run : |
32+ ENVIRONMENT=local pytest --cov
You can’t perform that action at this time.
0 commit comments