Skip to content

Commit

Permalink
update workflow and structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Pizhlo committed May 10, 2024
1 parent 3605bc9 commit 1709044
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Test with unittest
run: |
cd test
python -m unittest discover -s . -p 'test_*.py'
python -m unittest discover -s ./test -p 'test_*.py'
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# from leetcode.search_insert import search_insert
from leetcode.search_insert import search_insert

Check failure on line 1 in main.py

View workflow job for this annotation

GitHub Actions / build (pypy3.10)

Ruff (F401)

main.py:1:36: F401 `leetcode.search_insert.search_insert` imported but unused
3 changes: 3 additions & 0 deletions stepik/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .linear_search import *

Check failure on line 1 in stepik/__init__.py

View workflow job for this annotation

GitHub Actions / build (pypy3.10)

Ruff (F403)

stepik/__init__.py:1:1: F403 `from .linear_search import *` used; unable to detect undefined names
from .linear_search import *

Check failure on line 2 in stepik/__init__.py

View workflow job for this annotation

GitHub Actions / build (pypy3.10)

Ruff (F403)

stepik/__init__.py:2:1: F403 `from .linear_search import *` used; unable to detect undefined names
from .selection_sort import *

Check failure on line 3 in stepik/__init__.py

View workflow job for this annotation

GitHub Actions / build (pypy3.10)

Ruff (F403)

stepik/__init__.py:3:1: F403 `from .selection_sort import *` used; unable to detect undefined names
Empty file added test/leetcode_test/__init__.py
Empty file.
File renamed without changes.
Empty file added test/stepik_test/__init__.py
Empty file.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from linear_search.linear_search import linear_search, linear_search_few_values
from stepik.linear_search.linear_search import linear_search, linear_search_few_values

class TestLinearSearch(unittest.TestCase):

Expand Down
File renamed without changes.

0 comments on commit 1709044

Please sign in to comment.