Skip to content

Commit 097cb99

Browse files
authored
Add dist check worflow (#238)
1 parent aa01330 commit 097cb99

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/dist.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: dist-check
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
dist:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Setup Python
11+
uses: actions/setup-python@v2
12+
with:
13+
python-version: 3.8
14+
- name: Build dist
15+
run: |
16+
python setup.py sdist
17+
- name: Twine check
18+
run: |
19+
pip install twine
20+
last_dist=$(ls -t dist/autoPyTorch-*.tar.gz | head -n 1)
21+
twine_output=`twine check "$last_dist"`
22+
if [[ "$twine_output" != "Checking $last_dist: PASSED" ]]; then echo $twine_output && exit 1;fi
23+
- name: Install dist
24+
run: |
25+
last_dist=$(ls -t dist/autoPyTorch-*.tar.gz | head -n 1)
26+
pip install $last_dist
27+
- name: PEP 561 Compliance
28+
run: |
29+
pip install mypy
30+
cd .. # required to use the installed version of autosklearn
31+
if ! python -c "import autoPyTorch"; then exit 1; fi

0 commit comments

Comments
 (0)