1515 env :
1616 GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
1717 if : " !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
18+
1819 docs-linux :
1920 runs-on : ubuntu-latest
2021 strategy :
3637 git config --global --add user.email "[email protected] " 3738 - name : Test docs
3839 run : ./run-tests.sh -d
40+
41+ test-distro :
42+ runs-on : ubuntu-latest
43+ steps :
44+ - uses : actions/checkout@v2
45+ with :
46+ fetch-depth : 0
47+ - run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
48+ - name : Set up Python ${{ matrix.python-version }}
49+ uses : actions/setup-python@v1
50+ with :
51+ python-version : " 3.6"
52+ - name : Install dependencies
53+ run : |
54+ python -m pip install --upgrade pip
55+ pip install setuptools wheel twine
56+ python -m pip install -e .[all]
57+ - name : Build Package
58+ run : python setup.py sdist bdist_wheel
59+ - name : test with twine
60+ run : twine check dist/*
61+
3962 test-linux :
4063 runs-on : ubuntu-latest
4164 strategy :
@@ -156,10 +179,6 @@ jobs:
156179
157180 publish-pypi :
158181 runs-on : ubuntu-latest
159- strategy :
160- max-parallel : 1
161- matrix :
162- python-version : [3.6]
163182 needs : [docs-linux, test-linux, test-macos, test-linux-integration, test-macos-integration]
164183 if : " startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master'"
165184 steps :
@@ -170,7 +189,7 @@ jobs:
170189 - name : Set up Python ${{ matrix.python-version }}
171190 uses : actions/setup-python@v1
172191 with :
173- python-version : ${{ matrix.python-version }}
192+ python-version : " 3.6 "
174193 - name : Install dependencies
175194 run : |
176195 python -m pip install --upgrade pip
@@ -219,8 +238,6 @@ jobs:
219238 - run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
220239 - name : Set up Python ${{ matrix.python-version }}
221240 uses : actions/setup-python@v1
222- with :
223- python-version : ${{ matrix.python-version }}
224241 - name : Install dependencies
225242 run : |
226243 brew update
0 commit comments