Skip to content

Commit

Permalink
added gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
bnarasimha committed May 22, 2024
1 parent 882d55d commit be2af1c
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Train the Model
run: |
python train.py
- name: Build Docker Image
env:
DOCKER_USER: ${{secrets.DOCKER_USER_NAME}}
run: |
docker build -t $DOCKER_USER/patient_survival .
- name: Login to DockerHub
env:
DOCKER_USER: ${{secrets.DOCKER_USER_NAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASS_TOKEN}}
run:
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Push Docker Image
env:
DOCKER_USER: ${{secrets.DOCKER_USER_NAME}}
run: |
docker push $DOCKER_USER/bikeshare_api
53 changes: 53 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
.DS_Store
.huskyrc.json
out
log.log
**/node_modules
*.pyc
*.vsix
envVars.txt
**/.vscode/.ropeproject/**
**/testFiles/**/.cache/**
*.noseids
.nyc_output
.vscode-test
__pycache__
npm-debug.log
**/.mypy_cache/**
!yarn.lock
coverage/
cucumber-report.json
**/.vscode-test/**
**/.vscode test/**
**/.vscode-smoke/**
**/.venv*/
port.txt
precommit.hook
python_files/lib/**
python_files/get-pip.py
debug_coverage*/**
languageServer/**
languageServer.*/**
bin/**
obj/**
.pytest_cache
tmp/**
.python-version
.vs/
test-results*.xml
xunit-test-results.xml
build/ci/performance/performance-results.json
!build/
debug*.log
debugpy*.log
pydevd*.log
nodeLanguageServer/**
nodeLanguageServer.*/**
dist/**
# translation files
*.xlf
package.nls.*.json
l10n/
native_locator/target/**
native_locator/Cargo.lock
pkl

0 comments on commit be2af1c

Please sign in to comment.