Skip to content

Commit fd62d30

Browse files
authored
added check_pip_conflicts workflow yml file
1 parent 15de5ce commit fd62d30

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Python Check Packages Conflicts
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
check-packages-conficts:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Try installing packages
17+
run: |
18+
python -m pip install -r requirements.txt || {
19+
echo "Error installing packages:"
20+
cat $(pip list --format=columns | grep Error)
21+
exit 1
22+
}

0 commit comments

Comments
 (0)