feat (redirect): Create contact to reduce latency #62
Workflow file for this run
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
--- | |
# This workflow will run the Black Python formatter as well as the | |
# Bandit security linter. See the following pages for details: | |
# See https://black.readthedocs.io/en/stable/github_actions.html | |
# https://github.com/PyCQA/bandit | |
name: Python-Checks | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.py' # All python files in the repository | |
pull_request: | |
paths: | |
- '**.py' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- uses: psf/black@stable | |
bandit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Scan | |
run: | | |
pip install -r requirements-dev.txt | |
bandit --exclude ./.venv/,./test -r . |