Skip to content

Commit

Permalink
ci: update to latest actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dairiki committed May 5, 2023
1 parent 1d6c65c commit 564c0a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-pypi.yml
Expand Up @@ -14,7 +14,7 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
# Need full history for setuptools_scm to work
fetch-depth: 0
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/tests.yml
Expand Up @@ -18,9 +18,9 @@ jobs:
- '3.11'
- 'pypy-3.9'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -29,35 +29,37 @@ jobs:
pip install tox tox-gh-actions
- name: Test with tox
run: tox
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: coverage-data
path: .coverage.*
retention-days: 1

coverage:
needs: tests
if: always()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: coverage-data
- name: Test coverage
run: tox -e cover
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: htmlcov
path: htmlcov
retention-days: 2

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit 564c0a6

Please sign in to comment.