Skip to content
Open

day5 #147

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
17 changes: 7 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
# push:
# branches: [ main, master ]
pull_request:
branches: [ main, master ]
branches: [ main, master, develop ]

jobs:
test:
Expand All @@ -25,17 +25,14 @@ jobs:

- name: Lint with flake8
run: |
flake8 day5/演習3 --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 day5/演習3 --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
flake8 day5/演習2 --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 day5/演習2 --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics

- name: Format check with black
run: |
black --check day5/演習3
black --check day5/演習2

- name: Run data tests
- name: Run pytest on main.py
run: |
pytest day5/演習3/tests/test_data.py -v

- name: Run model tests
run: |
pytest day5/演習3/tests/test_model.py -v
pytest day5/演習2/main.py -v

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.env
.streamlit
chat_feedback.db
Binary file added day1/.DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions day1/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,5 @@ cython_debug/

# PyPI configuration file
.pypirc

.env
Loading