Skip to content

Version 1.1.1 App library added #20

Version 1.1.1 App library added

Version 1.1.1 App library added #20

Workflow file for this run

name: Django CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.10.7]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set environment variables
run: |
echo "GOOGLE_MAPS_API_KEY=${{ secrets.GOOGLE_MAPS_API_KEY }}" >> $GITHUB_ENV
echo "SECRET_KEY=${{ secrets.SECRET_KEY }}" >> $GITHUB_ENV
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
python coupleApp/manage.py test
# Common security vulnerabilities
- name: Install bandit
run: pip install bandit
- name: Run bandit security check
run: bandit -r .
# Dependencies vulnerabilities
- name: Install safety
run: pip install safety
- name: Run safety check
run: safety check