Skip to content

Commit

Permalink
ci(test,pypi-upload): actions/setup.py v3 -> v4 and cache pip depende…
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Sep 3, 2022
1 parent bff45fc commit 4f81f62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pypi-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
cache: 'pip'
cache-dependency-path: 'pyproject.toml'

- name: Install latest pip, build, twine
run: |
Expand All @@ -26,4 +29,4 @@ jobs:
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload --verbose -u '__token__' dist/*
twine upload --verbose -u '__token__' dist/*
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'pyproject.toml'

- name: Install dependencies
run: |
Expand Down

0 comments on commit 4f81f62

Please sign in to comment.