File tree Expand file tree Collapse file tree 1 file changed +8
-18
lines changed Expand file tree Collapse file tree 1 file changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -9,33 +9,23 @@ defaults:
9
9
10
10
jobs :
11
11
check_dependencies :
12
- name : Check Python Dependencies
13
12
runs-on : ubuntu-latest
14
-
13
+
15
14
steps :
16
- - name : Checkout repository
15
+ - name : Checkout Repository
17
16
uses : actions/checkout@v3
18
17
19
18
- name : Set up Python
20
19
uses : actions/setup-python@v4
21
20
with :
22
- python-version : ' 3.8'
21
+ python-version : ' 3.8'
23
22
24
- - name : Install dependencies
23
+ - name : Install Dependencies
25
24
run : |
26
25
python -m pip install --upgrade pip
27
- python -m pip install git+https://github.com/openedx/repo-tools.git@0.8.6#egg=edx-repo-tools[find_dependencies]
28
-
29
- - name : Run dependency check
30
- run : |
31
- python https://github.com/openedx/repo-tools/blob/master/edx_repo_tools/find_dependencies/find_dependencies.py
26
+ pip install -r requirements.txt
32
27
33
- - name : Check if any dependency belongs to openedx
28
+ - name : List Installed Packages
34
29
run : |
35
- if grep -q openedx /tmp/unpack_reqs/repo_urls.txt; then
36
- echo "A dependency belongs to openedx organization"
37
- exit 0 # Pass the check
38
- else
39
- echo "No dependency belongs to openedx organization"
40
- exit 1 # Fail the check
41
- fi
30
+ source .venv/bin/activate # Activate the virtual environment
31
+ pip list --format=columns # List installed packages in columns format
You can’t perform that action at this time.
0 commit comments