-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
882d55d
commit be2af1c
Showing
2 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |