From 5814e70431dbb168bc3151e76951881557cf4891 Mon Sep 17 00:00:00 2001 From: David Brownell Date: Mon, 6 Apr 2026 16:18:13 -0400 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20[upgraded=5Fdependency]=20?= =?UTF-8?q?Updated=20copier=20template=20dependency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .copier-answers.yml | 3 +- .github/ISSUE_TEMPLATE/bug_report.md | 5 ++- .github/actions/release_impl/action.yml | 8 ++-- .github/workflows/CICD_impl.yml | 39 +++++++++--------- .github/workflows/codeql.yml | 54 ++++++++++++------------- README.md | 2 + 6 files changed, 59 insertions(+), 52 deletions(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index ece3804..c53ad85 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -6,7 +6,7 @@ # available at https://github.com/gt-sse-center/copier-UvScaffolding. # -_commit: v0.3.4 +_commit: v0.5.6 _src_path: . author_email: github@DavidBrownell.com author_name: David Brownell @@ -15,6 +15,7 @@ coverage_badge_gist_username: davidbrownell github_host: https://github.com github_repo_name: FileBackup github_username: davidbrownell +install_ty: false license: MIT project_name: FileBackup python_package_name: FileBackup diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index b05a0c8..49b8f5a 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -15,7 +15,8 @@ Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' -4. See error +4. Invoke via '....' +5. See error ## Expected behavior A clear and concise description of what you expected to happen. @@ -25,7 +26,7 @@ If applicable, add screenshots to help explain your problem. ## Environment (please complete the following information): - OS: [e.g. iOS] - - Python Version: [e.g. 3.13, 3.12, 3.11, etc.] + - Python Version: [e.g. 3.14, 3.13, 3.12, 3.11, etc.] - FileBackup Version [e.g. 1.2.3] ## Additional context diff --git a/.github/actions/release_impl/action.yml b/.github/actions/release_impl/action.yml index 35b58ab..255ca85 100644 --- a/.github/actions/release_impl/action.yml +++ b/.github/actions/release_impl/action.yml @@ -32,12 +32,12 @@ runs: using: composite steps: - name: Install uv and python - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v7 with: enable-cache: false # No uv.lock or requirements.txt files, so nothing to cache on - name: Download Artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: path: dist merge-multiple: true @@ -59,7 +59,7 @@ runs: # Commit code coverage - name: Create Code Coverage Badge if: ${{ inputs.coverage_badge_gist_token != '' && inputs.coverage_badge_gist_id != '' }} - uses: schneegans/dynamic-badges-action@v1.7.0 + uses: schneegans/dynamic-badges-action@v1.8.0 with: auth: ${{ inputs.coverage_badge_gist_token }} gistID: ${{ inputs.coverage_badge_gist_id }} @@ -102,7 +102,7 @@ runs: - name: Upload Signatures if: ${{ inputs.minisign_private_key != '' }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: Minisign signatures path: ./dist/*.minisig diff --git a/.github/workflows/CICD_impl.yml b/.github/workflows/CICD_impl.yml index 71fc1a0..c13be81 100644 --- a/.github/workflows/CICD_impl.yml +++ b/.github/workflows/CICD_impl.yml @@ -58,10 +58,10 @@ jobs: contents: read steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install uv and python - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v7 with: python-version: ${{ matrix.python_version }} enable-cache: true @@ -78,7 +78,7 @@ jobs: COVERAGE_FILE: .coverage.${{ matrix.os }}.${{ matrix.python_version }} - name: Upload Coverage Data - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: .coverage.${{ matrix.os }}.${{ matrix.python_version }} path: .coverage.${{ matrix.os }}.${{ matrix.python_version }} @@ -98,10 +98,10 @@ jobs: contents: read steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install uv and python - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v7 with: enable-cache: true @@ -109,7 +109,7 @@ jobs: run: uv sync --frozen - name: Download Coverage Data - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: merge-multiple: true @@ -126,7 +126,7 @@ jobs: echo "**Total coverage:** ${TOTAL}%" >> $GITHUB_STEP_SUMMARY - name: Upload Coverage Data - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: .coverage.json path: .coverage.json @@ -147,12 +147,12 @@ jobs: contents: read steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 - name: Install uv and python - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v7 with: enable-cache: true python-version: ${{ inputs.python_package_version }} @@ -180,7 +180,7 @@ jobs: echo "**Package Version:** ${PACKAGE_VERSION}" >> $GITHUB_STEP_SUMMARY - name: Upload Python Package - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: Python package path: dist/** @@ -207,14 +207,17 @@ jobs: steps: - name: Install uv and python - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v7 with: python-version: ${{ matrix.python_version }} enable-cache: false # No uv.lock or requirements.txt files, so nothing to cache on ignore-empty-workdir: true + - name: Create a virtual environment (since pyproject.toml doesn't exist) + run: uv venv + - name: Download Python Package - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: Python package path: dist @@ -245,10 +248,10 @@ jobs: contents: read steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install uv and python - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v7 with: python-version: ${{ inputs.python_package_version }} enable-cache: true @@ -263,7 +266,7 @@ jobs: run: uv run python BuildBinary.py Bundle --custom-filename-suffix "-${{ env.PACKAGE_VERSION }}.${{ matrix.os }}" --verbose - name: Upload Bundle - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: Binary.${{ matrix.os }} path: FileBackup-${{ env.PACKAGE_VERSION }}.* @@ -288,7 +291,7 @@ jobs: steps: - name: Download Binary - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: Binary.${{ matrix.os }} path: binary @@ -329,11 +332,11 @@ jobs: contents: write # To tag the repository and create the release steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Has Release Changes? id: has_release_changes - uses: dorny/paths-filter@v3 + uses: dorny/paths-filter@v4 with: filters: ./.github/release_sources.yaml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 2671f30..32e50ec 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -50,38 +50,38 @@ jobs: # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support steps: - - name: Checkout repository - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v6 - # 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. + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + 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. - # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality + # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v4 - # â„šī¸ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + # â„šī¸ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - # If the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. + # If the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh + # - run: | + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 - with: - category: "/language:${{matrix.language}}" + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: "/language:${{matrix.language}}" diff --git a/README.md b/README.md index d9c268a..95492b6 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ **Development:** [![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv) +[![ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) +[![pytest](https://img.shields.io/badge/pytest-enabled-brightgreen)](https://docs.pytest.org/) [![CI](https://github.com/davidbrownell/FileBackup/actions/workflows/CICD.yml/badge.svg)](https://github.com/davidbrownell/FileBackup/actions/workflows/CICD.yml) [![Code Coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/davidbrownell/f15146b1b8fdc0a5d45ac0eb786a84f7/raw/FileBackup_code_coverage.json)](https://github.com/davidbrownell/FileBackup/actions) [![GitHub commit activity](https://img.shields.io/github/commit-activity/y/davidbrownell/FileBackup?color=dark-green)](https://github.com/davidbrownell/FileBackup/commits/main/)