-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 1.01 KB
/
main.yml
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
name: test Cat
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
# обновление pip
python -m pip install --upgrade pip
# установка flake8 и его плагинов
pip install flake8 pep8-naming flake8-broken-line flake8-return flake8-isort
# установка зависимостей
pip install -r requirements.txt
- name: Test with flake8 and pytests
run: |
# запуск проверки проекта по flake8
python -m flake8
# перейти в папку, содержащую manage.py —
# <корневая_папка_infra_actions>/<папка_проекта>/manage.py
# cd cat_charity_fund/
# запустить написанные разработчиком тесты
pytest