File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Un fichier Yaml d'action Github
2+
3+ on : [push]
4+
5+ jobs :
6+ lint :
7+ runs-on : ubuntu-18.04
8+ steps :
9+ - uses : actions/checkout@v2
10+ - run : echo "Ici on lint"
11+ - run : pip3 install flake8
12+ - run : flake8 template_model
13+ test :
14+ runs-on : ubuntu-18.04
15+ steps :
16+ - uses : actions/checkout@v2
17+ - run : echo "Ici on tests"
18+ - run : pip install
19+ - run : pip install Django==2.2.* -U # FIXME
20+ - run : coverage run --source=template_model ./manage.py test
21+ - run : codecov
22+ deploy :
23+ # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idif
24+ # https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions
25+ if : ${{ true }}
26+
27+ # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idneeds
28+ needs : [lint, test]
29+ runs-on : ubuntu-18.04
30+ steps :
31+ - run : echo "Ici on déploie"
32+
You can’t perform that action at this time.
0 commit comments