diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d20dbb9..1a5e5e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,18 +31,19 @@ jobs: container: ghcr.io/mopidy/ci:latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Fix home dir permissions to enable pip caching run: chown -R root /github/home - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} cache: pip - cache-dependency-path: setup.cfg - - run: python -m pip install pygobject tox + - run: python -m pip install tox - run: python -m tox -e ${{ matrix.tox }} if: ${{ ! matrix.coverage }} - run: python -m tox -e ${{ matrix.tox }} -- --cov-report=xml if: ${{ matrix.coverage }} - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 if: ${{ matrix.coverage }} + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 21a6ea1..651a806 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,15 +9,14 @@ jobs: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - with: - python-version: '3.9' - - name: "Install dependencies" - run: python3 -m pip install build - - name: "Build package" - run: python3 -m build - - uses: pypa/gh-action-pypi-publish@v1.4.1 - with: - user: __token__ - password: ${{ secrets.PYPI_TOKEN }} + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: "Install dependencies" + run: python3 -m pip install build + - name: "Build package" + run: python3 -m build + - uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_TOKEN }}