Skip to content

Commit

Permalink
Fix GHA deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
prisae committed Dec 4, 2020
1 parent 8ec8b79 commit d09623c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ jobs:
uses: AndreMiras/coveralls-python-action@f5fd5c309b39d01599fb92c72d4f7409ea78aec9
with:
parallel: true
flag-name: OS,PYTHON
flag-name: ${{ matrix.python-version }} (${{ matrix.os }})


coveralls_finish:
needs: test
Expand All @@ -85,8 +86,8 @@ jobs:
needs: test
name: Deploy to PyPI
runs-on: ubuntu-latest
# Only from the origin repository, not forks; only master.
if: github.repository_owner == 'prisae' && github.ref == 'refs/heads/master'
# Only from the origin repository, not forks; only master and tags.
if: github.repository_owner == 'prisae' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/'))

steps:
# Checks-out your repository under $GITHUB_WORKSPACE
Expand Down Expand Up @@ -118,11 +119,15 @@ jobs:
pip install -r requirements-dev.txt
- name: Build source and wheel distributions
if: github.ref == 'refs/heads/master'
run: |
# Change setuptools-scm local_scheme to "no-local-version" so the
# local part of the version isn't included, making the version string
# compatible with Test PyPI.
sed --in-place "s/'root'/'local_scheme':'no-local-version','root'/g" setup.py
- name: Build source and wheel distributions
run: |
# Build source and wheel packages
python setup.py sdist
python setup.py bdist_wheel
Expand Down

0 comments on commit d09623c

Please sign in to comment.