-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updated routes.py to show title,description and professors for each department and to show departments for the /staff * updated .gitignore to ignore python env directories named myenv * Adapted db to use postgres. Updated Opportunities model with search vector and create simple route to search Opportunities (with fuzzy searching) * fixed changes requested in PR #186 * Added migration * Added flask-migrate * remove myenv * black formatting * Fixed formatting and requirements * Added migration to Dockerfile * Formatting * Fixing for pr. * Fix docker running (#201) * fix run command * fix run command * hot-fix: error with running docker container * update port number * Attempt docker fix (#195) * fix run command * hot-fix: error with running docker container * update port number * revert run command * Attempt docker fix (#196) * fix run command * hot-fix: error with running docker container * update port number * revert run command * change port and fix run * Attempt docker fix (#197) * fix run command * hot-fix: error with running docker container * update port number * revert run command * change port and fix run * test * remove docker build command * attempt more fixes * fix healthcheck * rename file * correct copy command * try to improve the docker run test to ensure things function in prod * Update names and production details * Only run tests on changes to python files (#204) Only run tests on changes to python tests * Added migration documentation. * Bump pytest from 8.2.2 to 8.3.3 Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.2.2 to 8.3.3. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@8.2.2...8.3.3) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Update requirements * Update requirements * Fix docker pip install error (#214) * install needed alpine dependencies for postgres * run tests for more cases --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Abid Talukder <[email protected]> Co-authored-by: Mrunal Athaley <[email protected]> Co-authored-by: youssefr26 <[email protected]> Co-authored-by: Ramzey <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
429e74c
commit 09c344f
Showing
21 changed files
with
722 additions
and
100 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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
name: Black Formatter | ||
|
||
on: [pull_request] | ||
on: | ||
pull_request: | ||
paths: | ||
- "**.py" | ||
|
||
jobs: | ||
lint: | ||
|
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 |
---|---|---|
@@ -1,12 +1,27 @@ | ||
name: Docker Build Test | ||
|
||
on: [pull_request] | ||
on: | ||
pull_request: | ||
paths: | ||
- "**.py" | ||
- "Dockerfile" | ||
- "run.sh" | ||
- "requirements.txt" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: "Build Docker Image" | ||
run: | | ||
docker build . | ||
docker build -t labconnect-backend . | ||
- name: "Run Docker Container" | ||
run: | | ||
docker run -d --name labconnect-backend-container labconnect-backend | ||
sleep 60 | ||
docker logs labconnect-backend-container | ||
docker stop labconnect-backend-container | ||
docker rm labconnect-backend-container |
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
name: Pytest | ||
|
||
on: [pull_request] | ||
on: | ||
pull_request: | ||
paths: | ||
- "**.py" | ||
- "requirements.txt" | ||
|
||
jobs: | ||
build: | ||
|
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ env/ | |
*.DS_Store | ||
*.db | ||
.coverage | ||
*.vscode | ||
*.vscode |
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
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
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
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
app = create_app() | ||
|
||
if __name__ == "__main__": | ||
app.run(port=8000) | ||
app.run(port=9000) |
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
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
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
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
Oops, something went wrong.