Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 36 additions & 12 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
fi
echo "✅ Branch name is valid: $BRANCH_NAME"


check-issue-link:
name: Check Issue Link
runs-on: ubuntu-latest
Expand All @@ -33,21 +34,44 @@ jobs:
fi
echo "✅ Issue link found in PR description"

run-ci:
name: Run CI Checks
lint:
name: Lint Python Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install flake8
run: pip install flake8
- name: Lint backend
run: flake8 Back-End/etl/
- name: Lint dashboard
run: flake8 Dashboard/

- name: Lint Python (backend)
run: |
pip install flake8
flake8 Back-End/etl/

- name: Lint Streamlit app
run: |
flake8 dashboard/
test-etl:
name: Test ETL Scripts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: pip install -r Dashboard/requirements.txt
- name: Run ETL tests
run: pytest Back-End/etl/tests

- name: Validate SQL files
validate-sql:
name: Validate SQL Syntax
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check SQL files
run: |
grep -i "select" Back-End/sql/*.sql || echo "No SELECT statements found"
for file in Back-End/sql/*.sql; do
echo "Validating $file"
sqlite3 :memory: < "$file" || echo "Syntax error in $file"
done
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ Visualize metrics with modern frontend tools.

## License

This project is open-source under the MIT License. You may use, modify, and distribute it with attribution.
This project is licensed under the [Apache License 2.0](LICENSE).


## Author

Expand Down
Loading