Skip to content

Update page icon URL in main.py #27

Update page icon URL in main.py

Update page icon URL in main.py #27

Workflow file for this run

name: StrengthX
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.13.8
uses: actions/setup-python@v3
with:
python-version: "3.13.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest python-dotenv
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Load environment variables from .env
run: |
echo "Loading environment variables from .env file..."
if [ -f .env ]; then
export $(cat .env | grep -v '^#' | xargs)
else
echo " No .env file found, skipping."
fi
shell: bash
- name: Lint with flake8
run: |
echo "Linting with flake8..."
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
echo " Running tests with pytest..."
pytest || echo "No tests found or tests failed, skipping gracefully."