Skip to content

Commit

Permalink
Merge pull request #35 from CS222-UIUC/minh/connect_mainpage
Browse files Browse the repository at this point in the history
Minh/connect mainpage
  • Loading branch information
MinhPhan8803 authored Oct 31, 2022
2 parents 57fe5f5 + f085bf5 commit 93b75ce
Show file tree
Hide file tree
Showing 20 changed files with 1,057 additions and 133 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ jobs:
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
working-directory: src/backend
14 changes: 13 additions & 1 deletion .github/workflows/pytest-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ jobs:
steps:
- uses: actions/checkout@v3

- run: wget https://sqlite.org/2022/sqlite-autoconf-3380500.tar.gz
- run: tar -xvf sqlite-autoconf-3380500.tar.gz
- run: ./configure
working-directory: sqlite-autoconf-3380500
- run: make
working-directory: sqlite-autoconf-3380500
- run: sudo make install
working-directory: sqlite-autoconf-3380500
- run: export PATH="/usr/local/lib:$PATH"

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
Expand All @@ -23,7 +33,9 @@ jobs:

- name: Build coverage file
run: |
pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=. | tee pytest-coverage.txt
pytest --junitxml=pytest.xml --cov-report=term-missing --cov=. | tee pytest-coverage.txt
env:
LD_LIBRARY_PATH: /usr/local/lib
working-directory: src/backend

- name: Pytest coverage comment
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ jobs:

steps:
- uses: actions/checkout@v3

- run: wget https://sqlite.org/2022/sqlite-autoconf-3380500.tar.gz
- run: tar -xvf sqlite-autoconf-3380500.tar.gz
- run: ./configure
working-directory: sqlite-autoconf-3380500
- run: make
working-directory: sqlite-autoconf-3380500
- run: sudo make install
working-directory: sqlite-autoconf-3380500
- run: export PATH="/usr/local/lib:$PATH"

- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
Expand All @@ -39,4 +50,6 @@ jobs:
- name: Test with pytest
run: |
pytest
env:
LD_LIBRARY_PATH: /usr/local/lib
working-directory: src/backend
4 changes: 3 additions & 1 deletion src/backend/.coveragerc
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[run]
omit = *tests*
omit = *tests*
*init*
*decorators*
Loading

3 comments on commit 93b75ce

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCover
app.py820100%
dataholders
   apt.py90100%
   review.py70100%
pages
   login.py310100%
   mainpage.py860100%
TOTAL2150100%

Tests Skipped Failures Errors Time
44 0 💤 0 ❌ 0 🔥 0.620s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCover
app.py820100%
dataholders
   apt.py90100%
   review.py70100%
pages
   login.py310100%
   mainpage.py860100%
TOTAL2150100%

Tests Skipped Failures Errors Time
44 0 💤 0 ❌ 0 🔥 0.643s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCover
app.py820100%
dataholders
   apt.py90100%
   review.py70100%
pages
   login.py310100%
   mainpage.py860100%
TOTAL2150100%

Tests Skipped Failures Errors Time
44 0 💤 0 ❌ 0 🔥 0.835s ⏱️

Please sign in to comment.