Skip to content

Commit 8320f52

Browse files
committed
step5
1 parent 14a4402 commit 8320f52

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/codeclimate.yml

Whitespace-only changes.

.github/workflows/python-ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
uses: paambaati/[email protected]
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

0 commit comments

Comments
 (0)