File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Python CI
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - name : Checkout repository
13+ uses : actions/checkout@v3
14+
15+ - name : Set up Python
16+ uses : actions/setup-python@v4
17+ with :
18+ python-version : ' 3.12'
19+
20+ - name : Install dependencies
21+ run : |
22+ python -m pip install --upgrade pip
23+ pip install -r requirements.txt
24+ pip install flake8 pytest pytest-cov
25+
26+ - name : Run linter
27+ run : make lint
28+
29+ - name : Run tests with coverage
30+ run : make test-coverage
31+
32+ - name : Upload coverage to Code Climate
33+ 34+ if : github.ref_name == 'main'
35+ env :
36+ CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
37+ with :
38+ coverageCommand : make test-coverage
39+ debug : true
You can’t perform that action at this time.
0 commit comments