Created
August 6, 2021 11:54
-
-
Save dmitry-naumenko/03ac43aed5839d7f8648f27d88e3bc3c to your computer and use it in GitHub Desktop.
Пример github actions. Нужно добавить этот файл в .github/workflows/ и github сам начнет с ним работу
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: test_code | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: mypy | |
run: | | |
mypy . | |
- name: wemake-python-styleguide | |
uses: wemake-services/[email protected] | |
- name: pytest | |
run: | | |
pytest . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment