PyUp Safety #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'PyUp Safety' | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '* * 3 * *' | |
jobs: | |
security: | |
# runs-on: ubuntu-latest | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Run safety from PyUp | |
run: | | |
cd ./Python | |
pip3 install -e . | |
pip3 freeze > requirements.txt | |
pip3 install safety | |
safety check -r requirements.txt |