From fe7b6bba3a464a5bcc82043c05df8178f5b5fa4e Mon Sep 17 00:00:00 2001 From: Ghost0159 Date: Tue, 20 Aug 2024 03:53:48 +0200 Subject: [PATCH] Add workflow to verify execution of hShop_downloader.py - Added a GitHub Actions workflow to automatically verify the execution of hShop_downloader.py. - The workflow sets up Python 3.10, installs required dependencies from requirements.txt, and runs the hShop_downloader.py script. - Ensures that the script runs without errors in a continuous integration environment. --- .github/workflows/python-app.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 457948a..2b2fe51 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -26,17 +26,8 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + pip install -r requirements.txt - - name: Lint with flake8 + - name: Run hShop_downloader.py run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - - name: Test hShop_downloader.py - run: | - # Run the script with pytest to ensure it executes without error - pytest hShop_downloader.py + python hShop_downloader.py