Skip to content

Commit a92fec3

Browse files
authored
Add less-is-more workflow (#1)
* Create less-is-more.yml
1 parent bcae864 commit a92fec3

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/less-is-more.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 }}

0 commit comments

Comments
 (0)