Skip to content

Commit

Permalink
workflow updates
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Jan 26, 2021
1 parent fca517a commit bd711fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build_wheels:
name: build wheel on ${{ matrix.os }}
name: Python ${{ matrix.python-version }} wheel on ${{ runner.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -24,7 +24,7 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ matrix.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}
restore-keys: ${{ matrix.os }}-pip-${{ matrix.python-version }}-
- name: Install dependencies
run: pip install --upgrade pip setuptools wheel
Expand All @@ -51,16 +51,16 @@ jobs:
with:
path: ./dist/*.tar.gz
upload_pypi:
name: publish wheel to PyPI
name: publish to PyPI
needs: [ build_wheels, build_sdist ]
runs-on: ubuntu-latest
steps:
- name: Retrieve wheel
- name: Retrieve wheel(s) and source
uses: actions/download-artifact@v2
with:
name: artifact
path: dist
- name: Upload wheel
- name: Upload wheel(s) and source
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on: [ push ]

jobs:
tests:
name: Python ${{ matrix.python-version }} on ${{ runner.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
python-version: [ 3.8 ]
name: test in Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down

0 comments on commit bd711fd

Please sign in to comment.