Bump actions/cache from 2 to 3 (#2850) #89
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: python_safety | |
on: [pull_request, push] | |
jobs: | |
python_safety: | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login | |
runs-on: 'ubuntu-22.04' | |
steps: | |
- run: sudo apt-get -q update | |
- run: sudo DEBIAN_FRONTEND="noninteractive" apt-get -qq --no-install-recommends install | |
gcc libcurl4-openssl-dev libssl-dev | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- run: pip install --upgrade pip setuptools | |
- run: pip install safety . | |
- run: safety check |