Skip to content

Commit 15dc01e

Browse files
author
sangeet-joy_xero
committed
refactored the audit steps
1 parent 1cfdd02 commit 15dc01e

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/build-test-lint.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,26 @@ jobs:
2727
pip install --upgrade pip
2828
pip install black
2929
sudo pip install flake8
30+
pip install pip-audit
3031
pip install -r requirements.txt -r requirements/dev.txt
3132
working-directory: xero-python
3233

3334
- name: Run audit on requirements.txt
3435
run: |
35-
pip install pip-audit
36-
pip install -r requirements.txt
37-
echo "running audit...."
36+
echo "running audit on requirements.txt...."
3837
pip-audit -r requirements.txt
39-
working-directory: xero-python
40-
41-
- name: Run audit on dev.txt
42-
run: |
43-
pip install pip-audit
44-
pip install -r requirements/dev.txt
45-
echo "running audit...."
38+
echo "running audit on dev.txt...."
4639
pip-audit -r requirements/dev.txt
4740
working-directory: xero-python
4841

42+
# - name: Run audit on dev.txt
43+
# run: |
44+
# pip install pip-audit
45+
# pip install -r requirements/dev.txt
46+
# echo "running audit...."
47+
# pip-audit -r requirements/dev.txt
48+
# working-directory: xero-python
49+
4950
- name: Run Flake8
5051
run: flake8 xero_python
5152
working-directory: xero-python

0 commit comments

Comments
 (0)