Create __init__.py #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests on any Push event | |
# Запуск при любом push евенте в любой ветке, за исключением релизных тэгов. | |
# Они будт тестироваться перед сборкой | |
on: | |
push: | |
tags: | |
- '!refs/tags/*' | |
branches: | |
- '*' | |
jobs: | |
run_tests: | |
runs-on: [ubuntu-latest] | |
steps: | |
# Чекаутим код | |
- uses: actions/checkout@master | |
# Устанавливаем python нужной версии | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: '3.12' | |
architecture: 'x64' | |
- name: Install requirements | |
# Устанавливаем зависимости | |
run: pip install -r requirements.txt | |
- name: Run tests | |
run: coverage run tests/test_application.py | |
- name: Tests report | |
run: coverage report |