[CI] Update actions to latest version (node 16 deprecation)

Closes: https://github.com/deluge-torrent/deluge/pull/453
This commit is contained in:
zakary 2024-06-22 20:36:06 -05:00 committed by Calum Lind
parent 6ba23a8013
commit d9e3facbe8
No known key found for this signature in database
GPG Key ID: 90597A687B836BA3
4 changed files with 14 additions and 14 deletions

View File

@ -29,20 +29,20 @@ jobs:
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
# Checkout Deluge source to subdir to enable packaging any tag/commit # Checkout Deluge source to subdir to enable packaging any tag/commit
- name: Checkout Deluge source - name: Checkout Deluge source
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
ref: ${{ github.event.inputs.ref }} ref: ${{ github.event.inputs.ref }}
fetch-depth: 0 fetch-depth: 0
path: deluge_src path: deluge_src
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python}} python-version: ${{ matrix.python}}
architecture: ${{ matrix.arch }} architecture: ${{ matrix.arch }}
@ -98,7 +98,7 @@ jobs:
python setup_nsis.py python setup_nsis.py
makensis /Darch=${{ matrix.arch }} deluge-win-installer.nsi makensis /Darch=${{ matrix.arch }} deluge-win-installer.nsi
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: deluge-py${{ matrix.python }}-lt${{ matrix.libtorrent }}-${{ matrix.arch }} name: deluge-py${{ matrix.python }}-lt${{ matrix.libtorrent }}-${{ matrix.arch }}
path: packaging/win/*.exe path: packaging/win/*.exe

View File

@ -19,12 +19,12 @@ jobs:
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
cache: "pip" cache: "pip"
@ -63,7 +63,7 @@ jobs:
python -c 'from deluge._libtorrent import lt; print(lt.__version__)'; python -c 'from deluge._libtorrent import lt; print(lt.__version__)';
$DEBUG_PREFIX pytest -v -m "not (todo or gtkui)" deluge $DEBUG_PREFIX pytest -v -m "not (todo or gtkui)" deluge
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
# capture all crashes as build artifacts # capture all crashes as build artifacts
if: failure() if: failure()
with: with:
@ -78,12 +78,12 @@ jobs:
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
cache: "pip" cache: "pip"

View File

@ -15,11 +15,11 @@ jobs:
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: "3.10" python-version: "3.10"
cache: "pip" cache: "pip"

View File

@ -11,7 +11,7 @@ jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
- name: Run pre-commit linting - name: Run pre-commit linting
uses: pre-commit/action@v3.0.0 uses: pre-commit/action@v3.0.1