Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
436 commits
Select commit Hold shift + click to select a range
60787fc
define component to block authorized content
FabianKneissl Aug 31, 2022
c3b4002
Merge pull request #174 from pledge4future/feat/change-email
codingfabi Aug 31, 2022
1aefac0
Merge branch 'dev-frontend' into feat/emissions-estimator
FabianKneissl Aug 31, 2022
0f53468
remove trailing dot from email demplate
FabianKneissl Aug 31, 2022
6282b16
Code cleanup
codingfabi Aug 31, 2022
23d25db
add basic emission estimation view
codingfabi Aug 17, 2022
4b228b5
first draft of emission estimation view
codingfabi Aug 21, 2022
5587151
first draft of extracted transportation mode form
codingfabi Aug 21, 2022
aa022ee
Merge branch 'dev-backend-planner-numpy' into feat/emissions-estimator
FabianKneissl Aug 25, 2022
fcab858
basic connection to backend
FabianKneissl Aug 26, 2022
a86f86c
first draft of results visualization
codingfabi Aug 26, 2022
266a365
add dynamic visualization
codingfabi Aug 26, 2022
cad2ecc
adapt to latest co2calculator version
redfrexx Aug 28, 2022
91d7879
fixed seating_class bug #152
redfrexx Aug 28, 2022
eeb182b
switched to main branch in co2calculator
redfrexx Aug 28, 2022
a878442
adapt to new co2_calulator version, remove load_dotenv()
redfrexx Aug 28, 2022
39f3507
switched to dev-trip-planner branch of co2_calculator
redfrexx Aug 28, 2022
874d4d4
added start/destination address, city and country to PlanTrip endpoin…
redfrexx Aug 28, 2022
0258fe2
minor style updates and backend connection
codingfabi Aug 30, 2022
81439b3
Merge branch 'dev-frontend' into feat/emissions-estimator
FabianKneissl Aug 30, 2022
bb1c46d
add address mode and input loading
FabianKneissl Aug 30, 2022
29f4426
Merge branch 'dev-frontend' into feat/emissions-estimator
codingfabi Aug 31, 2022
861c299
Code cleanup
codingfabi Aug 31, 2022
0e77a47
Merge branch 'feat/emissions-estimator' of https://github.com/pledge4…
codingfabi Aug 31, 2022
c22ea96
added tests for plantrip endpoint
redfrexx Sep 2, 2022
f372794
Merge branch 'feat/emissions-estimator' of github.com:pledge4future/W…
redfrexx Sep 2, 2022
760abc0
Merge pull request #178 from pledge4future/dev-backend-fixTemplate
codingfabi Sep 2, 2022
a23495b
add form labels
codingfabi Sep 4, 2022
fbda7e7
fix result display
codingfabi Sep 4, 2022
772be3e
improve domain calculation in results chart
codingfabi Sep 4, 2022
c670575
added gunicorn to requirements.txt
redfrexx Sep 7, 2022
bf9dc35
improved error handling in backend
redfrexx Sep 7, 2022
3c31171
Merge branch 'feat/emissions-estimator' of github.com:pledge4future/W…
redfrexx Sep 7, 2022
03b5f25
change fuel type to electric
codingfabi Sep 8, 2022
b0d2bb6
Updated all imports from co2calc and fixed gta is not a function error
sami1riaz Sep 16, 2022
6ecda53
Merge pull request #159 from pledge4future/feat/connect-individual-da…
codingfabi Sep 30, 2022
dc17cd7
Merge branch 'dev-frontend' into feat/emissions-estimator
codingfabi Sep 30, 2022
b5c28c7
Merge pull request #179 from pledge4future/feat/emissions-estimator
codingfabi Oct 11, 2022
8bbad22
Merge pull request #175 from pledge4future/dev-frontend
codingfabi Oct 11, 2022
5a3cd71
Merge pull request #163 from pledge4future/dev-backend-permissions
redfrexx Oct 11, 2022
7e5461a
Merged dev-backend to dev (and resolved conflicts)
sami1riaz Oct 14, 2022
44240df
add env variable dependent routes
codingfabi Oct 16, 2022
247d3cc
fix drawer
codingfabi Oct 16, 2022
3d94346
more fixes to drawer
codingfabi Oct 16, 2022
d1ca81d
make api path dependent on env variable
codingfabi Oct 16, 2022
5b15f29
fix env parsing error
codingfabi Oct 16, 2022
91bef6a
Merge pull request #196 from pledge4future/dev-update_backend
redfrexx Oct 23, 2022
aa4744a
Merge branch 'dev' into feat/frontend-feature-flags
codingfabi Oct 25, 2022
ecf00d4
add sample.env.local file to versioning
codingfabi Nov 1, 2022
b7ac43b
Merge branch 'feat/frontend-feature-flags' of https://github.com/pled…
codingfabi Nov 1, 2022
49e6982
Merge pull request #198 from pledge4future/feat/frontend-feature-flags
codingfabi Nov 1, 2022
52c2b4b
Create basic working group overview setup
codingfabi Nov 12, 2022
e3efefb
add basic file structure for working group management
codingfabi Nov 12, 2022
147dc70
create skeleton for working group input form
codingfabi Nov 13, 2022
d62e28f
first approach to connect creation to backend
codingfabi Nov 13, 2022
036d638
use Unit in models.py
redfrexx Nov 19, 2022
5e47860
fix test by adding public attribute of working group
redfrexx Nov 19, 2022
90af1fe
update co2calculator
redfrexx Nov 19, 2022
60daf66
fixed value bug in populate_data.py
redfrexx Nov 19, 2022
e14d0d7
solved conflicts
redfrexx Nov 19, 2022
a3539ed
fixed foreign key error
redfrexx Nov 19, 2022
b637a06
fixed login test
redfrexx Nov 19, 2022
288311a
temporary fix for #206, django packages need updating
redfrexx Nov 19, 2022
23aad4e
Merge pull request #184 from pledge4future/171-update-co2calculator-s…
redfrexx Nov 19, 2022
df0f177
Merge branch 'dev' into feat/working-group-page
codingfabi Nov 20, 2022
5d3e7f5
fixed frontend image
redfrexx Nov 20, 2022
3555715
add deletion of volumens, containers and images to clean.sh
redfrexx Nov 20, 2022
ee7a049
copy yarn.lock to frontend image
redfrexx Nov 20, 2022
75166df
Merge pull request #210 from pledge4future/fix-docker
codingfabi Nov 20, 2022
52d9ddf
Fix institutions form entry
codingfabi Nov 20, 2022
0218155
add functionality to createa and to request working group
codingfabi Nov 20, 2022
02f7a48
Merge branch 'dev' into feat/working-group-page
codingfabi Nov 20, 2022
5c958f5
basic implementation of working group search
codingfabi Nov 20, 2022
57b210e
install react virtual
codingfabi Nov 20, 2022
4b0bda8
install correct virtualizer version
codingfabi Nov 20, 2022
6992653
add basic search in working group overview page
codingfabi Nov 20, 2022
9239724
minor fixes and usability improvements
codingfabi Nov 27, 2022
86f1deb
Merge pull request #214 from pledge4future/feat/working-group-page
codingfabi Nov 27, 2022
505f74e
Merge branch 'master' into fix/methodology-markdown
codingfabi Dec 17, 2022
95538d5
install packages for math rendering
codingfabi Dec 17, 2022
4d00f99
install more rendering packages for react markdown
codingfabi Dec 18, 2022
0f94c3c
adjust markdown renderer to use react-markdown and rendering libraries
codingfabi Dec 18, 2022
452a13e
adjust methodology markdown to new renderer
codingfabi Dec 18, 2022
36e47ef
add basic table of content
codingfabi Dec 18, 2022
2857568
Finalize table of content
codingfabi Dec 18, 2022
b8bf125
add card figure component to methodology
codingfabi Dec 18, 2022
73b89fa
Merge pull request #223 from pledge4future/fix/methodology-markdown
codingfabi Dec 18, 2022
2090454
fix axis description in all charts
codingfabi Dec 18, 2022
137f2ea
Merge pull request #225 from pledge4future/fix/tCO2-axis-description
codingfabi Dec 28, 2022
39a09d4
Update about-us.tsx
sarahmadeleine Dec 29, 2022
0c98b9e
Update about-us.tsx
sarahmadeleine Dec 29, 2022
f301b8e
modified update query test and added test for change password
han16nah Apr 24, 2022
5ff9787
create config.py for tests
han16nah Apr 24, 2022
45969ca
rework tests using config.json
han16nah Apr 24, 2022
0015706
make remaining tests run, take care of cleanup after tests (reverting…
han16nah Apr 24, 2022
509aef5
take data for fixture from config.json
han16nah Apr 24, 2022
2835951
remove print statements
han16nah Apr 24, 2022
f1a9fb4
Added test data for two working groups, which is read in create_test_…
Aug 14, 2022
349e9e3
added load_institutions.py
redfrexx Jan 7, 2023
af96065
adapted test users and working groups
redfrexx Jan 7, 2023
2a491d5
deleted create_groups.py
redfrexx Jan 7, 2023
43d22b0
adapted test_authentication.py to use test_data.json
redfrexx Jan 7, 2023
16b1ec3
fix tests, some still failing due to missing test data for co2 consum…
redfrexx Jan 7, 2023
525ef75
adapted backend tests to new test user data
redfrexx Jan 8, 2023
d3ff58d
add test institution, add id to institution model
redfrexx Jan 8, 2023
a870e3e
add id to research fields model
redfrexx Jan 8, 2023
30bf34c
set institution and research field by id in create_test_users.py
redfrexx Jan 8, 2023
5ba50e0
select working group by id in setworkinggroup endpoint
redfrexx Jan 8, 2023
10ad5cb
use ids of institutions and research field in createworkinggroup endp…
redfrexx Jan 8, 2023
2961e23
remove registration test
redfrexx Jan 8, 2023
32d6a66
moved query institutions and research fields to test_query_data.py
redfrexx Jan 8, 2023
e771001
set working group of user to new working group, related to #213
redfrexx Jan 8, 2023
d034c51
remove institutions from populate_data.py
redfrexx Jan 8, 2023
2269f9e
fix create working group tests
redfrexx Jan 8, 2023
45fab84
renamed create_test_users.py to create_test_data.py
redfrexx Jan 8, 2023
1725ea3
Merge pull request #115 from pledge4future/dev-backend-edittests
redfrexx Jan 8, 2023
07ef969
Merge pull request #227 from pledge4future/about-us_update
redfrexx Jan 10, 2023
36bc248
add python user in backend container to developer group
Jan 13, 2023
d470917
do not treat warnings as exceptions
Jan 13, 2023
cc68ade
remove container names in docker-compose.yml
Jan 13, 2023
5d4432b
Update methodology.md
veitu Jan 22, 2023
7cca06a
Update methodology.md
veitu Jan 22, 2023
dad5671
Update methodology.md
veitu Jan 22, 2023
f3bd819
Update methodology.md
veitu Jan 22, 2023
79a855c
Update methodology.md
veitu Jan 22, 2023
657e933
Added emission factor sources overview
veitu Jan 22, 2023
a894857
fix dashboard to show no data if there are no emission entries
codingfabi Jan 28, 2023
60df4c3
adjust mutations
codingfabi Jan 28, 2023
588d06a
adjust createWorkingGroupForm
codingfabi Jan 28, 2023
a75e1cd
adjust user profile page
codingfabi Jan 28, 2023
a1ab81b
create ugly workaround for working group creation form
codingfabi Jan 28, 2023
a20dfd5
change institution id field type
codingfabi Jan 28, 2023
b7ea328
revert error boundry change
codingfabi Jan 29, 2023
ef496e3
update about us page
sarahmadeleine Feb 2, 2023
bbd3d3a
Fix mutations for forms
sami1riaz Feb 4, 2023
ad6b11d
Merge pull request #242 from pledge4future/215-fix-form-mutations
codingfabi Feb 5, 2023
f04ac8b
Merge branch 'dev' into fix/create_working_group
codingfabi Feb 5, 2023
a904567
remove print statement
codingfabi Feb 5, 2023
f46d5a5
Merge pull request #236 from pledge4future/fix/create_working_group
codingfabi Feb 5, 2023
aa58cad
Add `level=personal` to HeatingAggregated and ElectricityAggregated e…
redfrexx Feb 5, 2023
55f548d
Ability to disable pages on prod
sami1riaz Feb 11, 2023
65b6b1b
Remove unnecessary function
sami1riaz Feb 11, 2023
53ef2b2
fix
sami1riaz Feb 11, 2023
f040f22
revert
sami1riaz Feb 11, 2023
29f6e05
Feat/heating emission display (#238)
codingfabi Feb 15, 2023
1dafde6
Merge branch 'dev' into 194-disable-some-features-for-deployment
codingfabi Feb 16, 2023
bcc6f02
Redirect to 404
sami1riaz Feb 17, 2023
2ca1147
Merge branch '194-disable-some-features-for-deployment' of https://gi…
sami1riaz Feb 17, 2023
50ff662
Merge pull request #245 from pledge4future/194-disable-some-features-…
sami1riaz Feb 17, 2023
cd9ca3b
Remove Participate and Emission Estimation from unauthenticated routes
sami1riaz Feb 18, 2023
f7b46d7
Refactor & rename emissionestimator - travelplanne
sami1riaz Feb 18, 2023
104d9f6
Add travelPlanner to unauthenticated routes
sami1riaz Feb 26, 2023
d20d6c2
Merge pull request #249 from pledge4future/202-404-for-participate-page
sami1riaz Feb 26, 2023
9493bae
Split out Models and fix model imports
sami1riaz Feb 26, 2023
6ca7a08
delete old models.py
sami1riaz Feb 26, 2023
befccda
Feat/users of working group (#253)
codingfabi Feb 27, 2023
629c547
Merge pull request #255 from pledge4future/130-improve-structure-of-m…
sami1riaz Feb 28, 2023
b3dac9b
created WorkingGroupJoinRequest class in models.py
redfrexx Feb 18, 2023
60c4f42
created endpoint request_join_working_group in schema.py with test
redfrexx Feb 18, 2023
280e420
updated database_structure.png
redfrexx Feb 18, 2023
785d600
add EmailClient and tests
redfrexx Feb 19, 2023
d8fcd9f
add email templates for working group join request
redfrexx Feb 19, 2023
a2ee541
send email in RequestJoinWorkingGroup endpoint
redfrexx Feb 19, 2023
2de1734
add pytest.ini for EmailClient tests
redfrexx Feb 19, 2023
ad2392c
fix EmailClient tests
redfrexx Feb 19, 2023
c323b13
add django test_settings.py
redfrexx Feb 19, 2023
206af1d
fix: converted id type to string for SetWorkingGroupInput
redfrexx Feb 19, 2023
2c49877
fixed failing tests
redfrexx Feb 19, 2023
0c3a4b2
edited test_settings.py
redfrexx Feb 20, 2023
5b58071
cleanup: correct typing, remove logger
redfrexx Feb 26, 2023
dd71e38
Merge pull request #254 from pledge4future/101-join-workinggroup-endp…
redfrexx Feb 28, 2023
fb8a8b8
renamed email.py to email_client.py to fix run in pycharm
redfrexx Feb 28, 2023
9560481
add id to WorkingGroupJoinRequest to find them when answering join re…
redfrexx Feb 28, 2023
555ebe4
change status in WorkingGroupJoinRequest to pending, approved and dec…
redfrexx Feb 28, 2023
e91cf17
add AnswerJoinRequest endpoint in schema.py and test
redfrexx Feb 28, 2023
b0c6103
use python manage.py instead of gunicorn to autoupdate running server…
redfrexx Feb 28, 2023
cbb3c8e
update database_structure.png
redfrexx Feb 28, 2023
d5b2ac1
add test to check that only the representative of the working group c…
redfrexx Feb 28, 2023
4014110
add endpoint to return join requests of the representative's working …
redfrexx Mar 4, 2023
7380ba1
use DJANGO_DEBUG in entryPoint.sh to start dev or production server
redfrexx Mar 4, 2023
50df912
sample.env: remove cubejs variables, add ORS_API_KEY
redfrexx Mar 4, 2023
1fc6c1d
Merge pull request #257 from pledge4future/256-answer-join-request
redfrexx Mar 5, 2023
29ac129
Merge branch 'master' into dev
codingfabi Mar 22, 2023
c855730
Fix/business trip creation (#262)
codingfabi Mar 23, 2023
f06283a
make methodology cards clickable
codingfabi Mar 23, 2023
b420140
fix failed dev merge
codingfabi Mar 23, 2023
753662b
Merge branch 'dev' of https://github.com/pledge4future/WePledge into dev
codingfabi Mar 23, 2023
35295d3
filter working group objects on retrieval (#266)
codingfabi Mar 28, 2023
edf62bd
Feat/improve form usability (#264)
codingfabi Mar 28, 2023
f174fec
Add new Hero
sami1riaz Mar 29, 2023
debcbe6
Remove Languages from footer
sami1riaz Mar 29, 2023
536bc3c
remove unnecessary css
sami1riaz Mar 29, 2023
65b2462
Feat/connect group and institute dashboard (#261)
codingfabi Mar 29, 2023
773e07c
Align buttons on landing page
sami1riaz Mar 30, 2023
209fdb5
Created new Footer component
sami1riaz Mar 30, 2023
a76a5e1
Deleted old footer and updated footer uses
sami1riaz Mar 30, 2023
16505b5
Update methodology.md
sarahmadeleine Apr 4, 2023
c5e6448
fix equations degree days
alexbercik Apr 4, 2023
3342e56
Better spacing between logos
sami1riaz Apr 4, 2023
8e6a8d0
Merge branch 'dev' into 250-redesign-top-bar
codingfabi Apr 5, 2023
c6fbde2
Change position of gi science logo
sami1riaz Apr 5, 2023
502efc8
Merge branch '250-redesign-top-bar' of https://github.com/pledge4futu…
sami1riaz Apr 5, 2023
f83a090
test the planner for transportation mode: car
Oct 23, 2022
a30919b
fixed trip planner tests
redfrexx Oct 26, 2022
02955cd
fixed value error, trip planner endpoint tests running
redfrexx Nov 13, 2022
9ccd6da
implemented tests for planTrip endpoint
redfrexx Nov 19, 2022
e3282da
delete test_planner files
redfrexx Nov 19, 2022
9eaba16
remove cube and pgadmin from docker-compose.yml
redfrexx Nov 19, 2022
5445256
Added new tests on buses, trains, planes, and ferries.
Nov 20, 2022
244ee05
fix(backend tests): fixed trip planner test for ferry
redfrexx Apr 5, 2023
692f17d
build(settings.py): added 0.0.0.0 to ALLOWED_HOSTS
redfrexx Apr 5, 2023
0fa65b6
Merge pull request #270 from pledge4future/250-redesign-top-bar
sami1riaz Apr 6, 2023
eed69dc
Merge pull request #209 from pledge4future/feat/emissions-estimator-test
redfrexx Apr 7, 2023
19fabbe
added Getting started, License and Acknowledgement sections to README
redfrexx Jun 24, 2022
c8df124
fixed links
redfrexx Jun 24, 2022
208e387
add installation instructions
redfrexx Apr 7, 2023
a51d9d2
add link to license
redfrexx Apr 7, 2023
be23c84
add contribution guidelines
redfrexx Apr 7, 2023
4b2a56b
add logos and links to supporters
redfrexx Apr 7, 2023
f1b6bdd
minor formatting edits
redfrexx Apr 7, 2023
a6e2bda
add openrouteservice logo
redfrexx Apr 7, 2023
f9e9905
Update README.md
redfrexx Apr 7, 2023
31b2d8e
Feat/working group join request (#268)
codingfabi Apr 8, 2023
d018ab7
Merge branch 'dev' into dev-readme
codingfabi Apr 8, 2023
3987190
Update README.md
veitu Apr 9, 2023
8280d4f
Merge pull request #273 from pledge4future/dev-readme
redfrexx Apr 9, 2023
0325973
add endpoint to delete working group
codingfabi Apr 12, 2023
950f11d
add frontend functionality to delete working group
codingfabi Apr 12, 2023
7ad58a4
attempt to add unit test
codingfabi Apr 12, 2023
a9d6f4e
added examples to degree days
sarahmadeleine Apr 18, 2023
cff7afd
updated degree days section and references
sarahmadeleine Apr 18, 2023
5700079
Update methodology.md
alexbercik Apr 18, 2023
b0a1b60
Update methodology.md
veitu Apr 19, 2023
9b65628
Update methodology.md
veitu Apr 19, 2023
0f254be
Merge pull request #282 from pledge4future/dev-methodology
veitu Apr 19, 2023
e70a271
Merge branch 'dev' into feat/delete-working-group
codingfabi Apr 20, 2023
9de6dc4
return answerjoinrequest object on declining of join request (#275)
codingfabi Apr 20, 2023
b69db37
Merge branch 'dev' into feat/delete-working-group
codingfabi Apr 20, 2023
1eb48d1
Allow representatives to delete working groups #247
codingfabi Apr 20, 2023
474d599
Feat/leave working groups (#280)
codingfabi Apr 20, 2023
fbdd132
add open route service to footer (#279)
codingfabi May 1, 2023
3f8d335
Feat/remove user from working group (#281)
codingfabi May 1, 2023
78b2163
fixed typo (#317)
Koosha-Owji May 28, 2023
ecae707
Fix/demo dashboard (#319)
codingfabi Jun 6, 2023
e9659f8
Feat/add user to working group (#284)
codingfabi Jun 6, 2023
7d4cf9b
Add issue template (#320)
codingfabi Jun 8, 2023
4a001cf
Hide electricity and heating forms for non-representatives (#321)
codingfabi Jun 8, 2023
f2637d0
fix email template link paths (#322)
codingfabi Jun 8, 2023
a0fc65a
add basic build pipelines (#324)
codingfabi Jul 1, 2023
05249da
Fix typos in "abort" (#326)
Negarbsh Jul 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
127 changes: 127 additions & 0 deletions .github/ISSUE_TEMPLATE/issue_template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
name: Issue Template
about: Create a new issue
title: ""

body:
- type: select
id: issue_type
attributes:
label: Issue Type
description: Please select the type of issue you are creating.
options:
- Bug Report
- Feature Request
- General Issue

- type: conditional
attributes:
conditions:
- field: issue_type
value: Bug Report
items:
- type: textarea
id: bug_description
attributes:
label: Bug Description
description: Provide a general description of the bug.

- type: textarea
id: expected_behavior
attributes:
label: Expected Behavior
description: Describe the software behaviour that you would expect. This helps us identify whether this is actually a bug or if the app is working as intended.

- type: enum
id: reproduction_steps
attributes:
label: Reproduction Steps
description: |
Enumerate the steps to reproduce the bug.
1. Step 1
2. Step 2
3. Step 3
4. ...

- type: text
id: browser
attributes:
label: Browser and Version
description: Specify the browser you are using. Please include the version.

- type: select
id: priority
attributes:
label: Priority
description: Select the priority of the issue.
options:
- High
- Medium
- Low

actions:
- type: add_label
name: Prio:HIGH
if: ${{ inputs.priority == 'High' }}
description: Adds 'Prio:High' label to the issue.
- type: add_label
name: Prio:MEDIUM
if: ${{ inputs.priority == 'Medium' }}
description: Adds 'Prio:Medium' label to the issue.
- type: add_label
name: Prio:LOW
if: ${{ inputs.priority == 'Low' }}
description: Adds 'Prio:Low' label to the issue.

- type: conditional
attributes:
conditions:
- field: issue_type
value: Feature Request
items:
- type: textarea
id: feature_description
attributes:
label: Feature Description
description: Provide a general description of the feature.

- type: text
id: user_role
attributes:
label: User Role
description: Describe your role in relation to this feature.

- type: select
id: priority
attributes:
label: Priority
description: Select the priority of the feature request.
options:
- High
- Medium
- Low

actions:
- type: add_label
name: Prio:HIGH
if: ${{ inputs.priority == 'High' }}
description: Adds 'Prio:High' label to the issue.
- type: add_label
name: Prio:MEDIUM
if: ${{ inputs.priority == 'Medium' }}
description: Adds 'Prio:Medium' label to the issue.
- type: add_label
name: Prio:LOW
if: ${{ inputs.priority == 'Low' }}
description: Adds 'Prio:Low' label to the issue.

- type: conditional
attributes:
conditions:
- field: issue_type
value: General Issue
items:
- type: textarea
id: general_description
attributes:
label: General Issue Description
description: Here is room for your input if you are not sure whether your issue is Bug or a Feature Request. Please provide a detailed description of the issue and add labels if necessary.
40 changes: 40 additions & 0 deletions .github/workflows/build-backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Backend Build

on:
push:
branches:
- dev

pull_request:
branches:
- dev

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend

steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
submodules: recursive

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Set environment variables
run: |
echo "SECRET_KEY=mock_secret_key_for_django" >> $GITHUB_ENV

- name: Run tests
run: python ./src/manage.py test
31 changes: 31 additions & 0 deletions .github/workflows/build-frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build frontend workflow

on:
push:
branches:
- dev
pull_request:
branches:
- dev

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: '16.18.1'

- name: Install Dependencies
run: yarn install

- name: Build App
run: yarn build
4 changes: 1 addition & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@



[submodule "backend/src/co2calculator"]
path = backend/src/co2calculator
url = https://github.com/pledge4future/co2calculator.git
branch = dev
Loading