-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (36 loc) · 972 Bytes
/
workflow.yaml
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
38
39
40
41
42
43
44
45
name: Main workflow
on:
push:
paths-ignore:
- '**.md'
branches:
- dev
- main
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8==6.1.0 flake8-isort==6.0.0 black==24.2.0
- name: Check with flake8
run: python -m flake8 backend/crm_yandex/
- name: Check with black
run: black --check backend/crm_yandex/
- name: Run tests with coverage
run: |
pip install coverage
coverage run -m unittest discover
coverage report -m
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: CRM-for-Yandex-ambassadors/backend