Skip to content

Commit

Permalink
Update workflows to use pipenv
Browse files Browse the repository at this point in the history
  • Loading branch information
biojerm committed Dec 12, 2024
1 parent 2bfdcc9 commit 66a414c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/daily-scanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ jobs:
fetch-depth: 0

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

uses: actions/setup-python@v5
- name: Install pipenv
uses: pip install pipenv
- name: Install dependencies
run: pip install -r requirements.txt

run: pipenv install --dev --ignore-pipfile
- name: Run Scanner Processor
run: python main.py -p scanner
run: pipenv run python main.py -p scanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_APP_TOKEN: ${{ secrets.SLACK_APP_TOKEN }}
6 changes: 4 additions & 2 deletions .github/workflows/pr-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ jobs:

- name: Install Python
uses: actions/setup-python@v5
- name: Install pipenv
uses: pip install pipenv
- name: Install dependencies
run: pip install -r requirements.txt
run: pipenv install --dev --ignore-pipfile
- name: Run testcases
run: pytest --junitxml=coverage/test-report.xml --cov-report html --cov-report xml --cov=processors tests/
run: pipenv run pytest --junitxml=coverage/test-report.xml --cov-report html --cov-report xml --cov=processors tests/

- name: Produce Coverage report
uses: 5monkeys/cobertura-action@882bd919c67f7aa665370064c22fb81e7662a759 # pin@master
Expand Down

0 comments on commit 66a414c

Please sign in to comment.