Skip to content

Commit

Permalink
Merge branch 'master' into credit-card-estimator
Browse files Browse the repository at this point in the history
  • Loading branch information
yashasvini121 authored Oct 27, 2024
2 parents 38fd0b2 + f6e7575 commit 534c61f
Show file tree
Hide file tree
Showing 36 changed files with 14,642 additions and 172 deletions.
33 changes: 0 additions & 33 deletions .devcontainer/devcontainer.json

This file was deleted.

27 changes: 27 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
**/__pycache__
**/.venv
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/bin
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
51 changes: 51 additions & 0 deletions .github/workflows/validate-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Validate PR

on:
pull_request:
branches: [ master ]
types: [opened, synchronize, reopened, ready_for_review]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.12]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Ubuntu packages
run: |
sudo apt-get update
sudo xargs -a packages.txt apt-get install -y
shell: bash

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Validate dependencies with pip-check
run: |
pip install pip-check
pip-check
continue-on-error: false # Fail the workflow if dependencies are invalid

- name: Test Streamlit App
run: |
pip install streamlit
streamlit run App.py --server.headless true --browser.gatherUsageStats false &
sleep 10 # Wait for the app to start
curl --retry 5 --retry-delay 5 http://localhost:8501
env:
STREAMLIT_SERVER_HEADLESS: true
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
__pycache__
venv
*.log
Loading

0 comments on commit 534c61f

Please sign in to comment.