Skip to content
This repository has been archived by the owner on Apr 20, 2020. It is now read-only.

Added a dependency security scan to pipeline. #20

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,18 @@ jobs:
- name: Check types statically
run: poetry run mypy . --strict

- name: Install mongodb
run: sudo docker run --name mongo -d -p 27017:27017 mongo

- name: Check for dependency security
run: |
poetry export -f requirements.txt > requirements.txt
poetry run safety check -r requirements.txt

- name: Test with pytest
run: poetry run pytest
env:
MONGO_URI: ${{ secrets.MongoUri }}
MONGO_URI: mongodb://localhost:27017
FLASK_ENV: testing

- name: Log in to GitHub Packages
Expand Down
Loading