-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (56 loc) · 1.78 KB
/
master_deploy.yml
File metadata and controls
60 lines (56 loc) · 1.78 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: reflex-cli
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Lint with pylint
run: |
pip install pylint
pylint ./reflex_cli/
- name: Test with unittest
run: |
coverage run -m unittest discover -v
- name: Test coverage enforcement
run: |
coverage report -m --fail-under=75
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up node
uses: actions/setup-node@v2
with:
node-version: "12.x"
- name: Install dependencies
run: |
npm install @semantic-release/commit-analyzer \
@semantic-release/release-notes-generator \
@semantic-release/github \
conventional-changelog-eslint \
semantic-release
- name: Create release
run: |
npx semantic-release -e ./.github/.releaserc.json
env:
GITHUB_TOKEN: ${{ secrets.CLOUDMITIGATOR_GITHUB_PAT }}