Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added secrets management, a CI pipeline, and formatters #84

Open
wants to merge 78 commits into
base: master
Choose a base branch
from

Conversation

agennadi
Copy link
Collaborator

@agennadi agennadi commented Nov 15, 2024

Description

  1. Introduced a pre-commit-hook for Black, ESLint, MyPy.
  2. Ran Black, ESLint, MyPy locally and refactored the code.
  3. Added required environment variables to GitHub secrets.
  4. Created a GitHub workflow Generate .env file that can be manually triggered by contributors with write access. Rationale: we don't want to commit our .env file to the repo for security reasons. However, developers need access to these variables to run the project locally. As a temporary solution, contributors can:
  • Get write access.
  • Trigger the Generate .env File workflow.
  • Download the generated .env file artifact.
  • Place the downloaded .env file in the root folder of the project.
    A sanity check on this workflow is appreciated!
  1. Created a CI pipeline that runs on PRs: checks code formatting, builds docker containers, and runs tests inside them.
  2. Updated README.

#43 #64

Type of changes

  • Bugfix
  • Chore
  • New Feature

Testing

  • I added automated tests
  • I think tests are unnecessary

How to test

We finally have a CI pipeline that runs tests in docker for us (yay!)

oscarsyu and others added 30 commits August 23, 2024 19:12
* Set up Next and FastAPI

* Removed .next cache and pycache.

* update gitignore

* clear cache

* update gitignore pt 2

---------

Co-authored-by: Mack Cooper <[email protected]>
…p dir is associated with requirements for streamlit app specifically
Integrating streamlit app updates
* cleared page.tsx, added blank lines

* cleared layout.tsx

* cleared global.css

* installed Prettier, configured Prettier and ESLint

* Updated prettierignore list
* cleared page.tsx, added blank lines

* created folders and files

* added content to the pages and configured routing

* corrected formatting

* added map view

* added page-not-found

* updated page not found

* updated according to comments
* created components test page

* created a mock button component

* Mock button updated and added to test lib

* components lib added and mock button updated

* updated according to comments
* Copied combined changes.

* Added pytest.

* Split models by concern.

* Moved each model into own python file.

* Deleted test_index.py

* Pruned TODO
* basic layout for home page

* added sizes and paddings

* refactoring

* refactoring
* Copied combined changes.

* Split models by concern.

* deleted test_index, added test_polygons

* deleted trailing space in .prettierrc
---------
Co-authored-by: AdamFinkle <[email protected]>
Co-authored-by: Anna Gennadinik <[email protected]>
* Copied combined changes.

* Added pytest.

* Split models by concern.

* Moved each model into own python file.

* Deleted test_index.py

* Pruned TODO

* Created mock database and tests.

* dockerized backend, frontend, db; added mock data; wrote db tests

* cleaned up code

* Added script for soft stories.
>
>
Co-authored-by: katiefg <[email protected]>
Co-authored-by: AdamFinkle <[email protected]>

* added script for soft stories

* Created script for soft stories.

Co-authored-by: katiefg <[email protected]>
Co-authored-by: AdamFinkle <[email protected]>

* minor refactoring

* modified package.json

* modified compose.yaml

* modified compose.yaml

* Added geopandas

Co-authored-by: katiefg <[email protected]>

* Co-authored-by: @katiefg

* Added comment about insecure request

* updated README

* resolved merge conflicts

* refactored tests

---------

Co-authored-by: AdamFinkle <[email protected]>
Co-authored-by: Anna Gennadinik <[email protected]>
Co-authored-by: katiefg <[email protected]>
Co-authored-by: AdamFinkle <[email protected]>
* added and applied colors

* font added

* text styles added

* text styles added

* sizes and paddings updated

* font colors added to textStyles

* updated logo font weight
@agennadi agennadi marked this pull request as draft November 15, 2024 00:48
@agennadi agennadi marked this pull request as ready for review November 15, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants