Skip to content

Commit

Permalink
Add workflow to verify execution of hShop_downloader.py
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
Ghost0159 authored Aug 20, 2024
1 parent 54b3fbf commit fe7b6bb
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fe7b6bb

Please sign in to comment.