Skip to content

Commit

Permalink
Polish GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Dec 8, 2020
1 parent 25335df commit d57458b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Expand Up @@ -17,16 +17,16 @@ jobs:
matrix:
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9"]
steps:
- uses: "actions/checkout@v2"
- uses: actions/checkout@v2
with:
# some tests work on the git history so we need all of it!
fetch-depth: 0
- uses: "actions/setup-python@v2"
- uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
- name: Install tox
run: python -m pip install tox tox-gh-actions
- name: "Run tox targets for ${{ matrix.python-version }}"
- name: Run tox
run: python -m tox
- name: Coveralls
if: matrix.python-version != 2.7
Expand All @@ -42,13 +42,13 @@ jobs:
- tests
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install pypa/build
run: python -m pip install build
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/
- name: Publish distribution 📦 to Test PyPI
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
Expand Down

0 comments on commit d57458b

Please sign in to comment.