Skip to content

Commit 0027578

Browse files
authored
build: fix render problem and add test (#1065)
1 parent 42baea0 commit 0027578

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

.github/workflows/test_deploy.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
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:
@@ -36,6 +37,28 @@ jobs:
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

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Changes
1919
=======
2020

2121
`0.9.1 <https://github.com/SwissDataScienceCenter/renku-python/compare/v0.9.0...v0.9.1>`__ (2020-02-24)
22-
=======================================================================================================
22+
-------------------------------------------------------------------------------------------------------
2323

2424
Bug Fixes
2525
~~~~~~~~~

0 commit comments

Comments
 (0)