File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Artifact size validation
2+
3+ on :
4+ pull_request :
5+ branches : " **"
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - uses : actions/checkout@v2
13+ with :
14+ fetch-depth : 0
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v2
18+ with :
19+ python-version : 3.8.3
20+
21+ - name : Install dependencies
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install wheel
25+ pip install -r requirements.txt
26+
27+ - name : Build package
28+ run : |
29+ python setup.py sdist bdist_wheel
30+
31+ - name : Less is more - tar.gz artifact
32+ uses : caponetto/less-is-more@v0.0.5
33+ with :
34+ released_artifact_name : bhc*.tar.gz
35+ artifact_path : dist/bhc*.tar.gz
36+ max_increase_percentage : 10
37+ github_token : ${{ secrets.BASIC_TOKEN }}
38+
39+ - name : Less is more - whl artifact
40+ uses : caponetto/less-is-more@v0.0.5
41+ with :
42+ released_artifact_name : bhc*.whl
43+ artifact_path : dist/bhc*.whl
44+ max_increase_percentage : 10
45+ github_token : ${{ secrets.BASIC_TOKEN }}
You can’t perform that action at this time.
0 commit comments