Skip to content

Bulk asynchronous downloader for multiple file hosts

ci: update workflows (#1353)

NTFSvolume0a3873c12934
diff --git a/.github/workflows/apprise.yml b/.github/workflows/apprise.yaml
similarity index 100%
rename from .github/workflows/apprise.yml
rename to .github/workflows/apprise.yaml
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yaml
similarity index 77%
rename from .github/workflows/ci.yml
rename to .github/workflows/ci.yaml
index 004d94ee6..51a351f00 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yaml
@@ -5,10 +5,18 @@ on:
branches:
- master
- dev
+ paths:
+ - 'cyberdrop_dl/**/*.py'
+ - 'tests/**/*.py'
+ - '.github/workflows/ci.yaml'
pull_request:
branches:
- master
- dev
+ paths:
+ - 'cyberdrop_dl/**/*.py'
+ - 'tests/**/*.py'
+ - '.github/workflows/ci.yaml'
workflow_dispatch:
jobs:
@@ -32,10 +40,10 @@ jobs:
steps:
- name: Checkout code
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v5
+ uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
@@ -47,5 +55,6 @@ jobs:
poetry install
- name: Run pytest
+ timeout-minutes: 10
run: |
poetry run pytest -v --cov --ignore=tests/test_apprise.py
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yaml
similarity index 50%
rename from .github/workflows/codeql-analysis.yml
rename to .github/workflows/codeql-analysis.yaml
index ca5d0016d..c1c155a05 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yaml
@@ -33,38 +33,16 @@ jobs:
fail-fast: false
matrix:
language: [ 'python' ]
- # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
- # Learn more about CodeQL language support at https://git.io/codeql-language-support
steps:
- name: Checkout repository
- uses: actions/checkout@v3
+ uses: actions/checkout@v5
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- # If you wish to specify custom queries, you can do so here or in a config file.
- # By default, queries listed here will override any specified in a config file.
- # Prefix the list here with "+" to use these queries and those in the config file.
- # queries: ./path/to/local/query, your-org/your-repo/queries@main
-
- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
- # If this step fails, then you should remove it and run the build manually (see below)
- - name: Autobuild
- uses: github/codeql-action/autobuild@v3
-
- # ℹ️ Command-line programs to run using the OS shell.
- # 📚 https://git.io/JvXDl
-
- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
- # and modify them (or add more) to build your code if your project
- # uses a compiled language
-
- #- run: |
- # make bootstrap
- # make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
diff --git a/.github/workflows/create_release.yaml b/.github/workflows/create_release.yaml
index 18a9222ba..269c20f59 100644
--- a/.github/workflows/create_release.yaml
+++ b/.github/workflows/create_release.yaml
@@ -11,7 +11,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: Check for version tag
id: check_tag
diff --git a/.github/workflows/publish-to-pypi.yaml b/.github/workflows/publish-to-pypi.yaml
index ebbdab8fb..cb0fbe626 100644
--- a/.github/workflows/publish-to-pypi.yaml
+++ b/.github/workflows/publish-to-pypi.yaml
@@ -19,7 +19,7 @@ jobs:
contents: write
steps:
- name: Checkout code
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: Set up Python 3.11.4
uses: actions/setup-python@v5
diff --git a/.github/workflows/ruff.yaml b/.github/workflows/ruff.yaml
index 0a79381f7..958f31dd7 100644
--- a/.github/workflows/ruff.yaml
+++ b/.github/workflows/ruff.yaml
@@ -5,10 +5,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout code
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
- name: ruff lint
uses: astral-sh/ruff-action@v3
- name: ruff format check
- run: "ruff format --check --diff"
+ uses: astral-sh/ruff-action@v3
+ with:
+ args:
+ "format --check --diff"