Skip to content

Instantly share code, notes, and snippets.

@dmitry-naumenko
Created August 6, 2021 11:54
Show Gist options
  • Save dmitry-naumenko/03ac43aed5839d7f8648f27d88e3bc3c to your computer and use it in GitHub Desktop.
Save dmitry-naumenko/03ac43aed5839d7f8648f27d88e3bc3c to your computer and use it in GitHub Desktop.
Пример github actions. Нужно добавить этот файл в .github/workflows/ и github сам начнет с ним работу
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/wemake-python-styleguide@0.15.3
- name: pytest
run: |
pytest .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment