diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 71e3be2..4052e02 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -14,9 +14,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: 3.9 @@ -26,7 +26,7 @@ jobs: - name: build dist run: python -m build - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: artifacts path: dist/* @@ -41,13 +41,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: artifacts path: dist - name: Push build artifacts to PyPI - uses: pypa/gh-action-pypi-publish@v1.6.4 + uses: pypa/gh-action-pypi-publish@release/v1 with: skip_existing: true user: __token__ @@ -59,10 +59,10 @@ jobs: needs: publish steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18 - run: npx changelogithub --no-group diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dc81fb6..f1d34f5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,9 +24,9 @@ jobs: python: ["3.8", "3.9", "3.10", "3.11", "pypy3.9"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python }} on ${{ matrix.os }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} @@ -38,7 +38,7 @@ jobs: - name: Check types with Python ${{ matrix.python }} on ${{ matrix.os }} run: | mypy --strict src - mypy src tests + mypy tests - name: Test with Python ${{ matrix.python }} on ${{ matrix.os }} run: pytest @@ -47,7 +47,7 @@ jobs: run: pytest --cov=mistune --cov-report=xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage.xml