Skip to content

added a lot more practical functionality, oriented towards security a… #103

added a lot more practical functionality, oriented towards security a…

added a lot more practical functionality, oriented towards security a… #103

Workflow file for this run

name: Python package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
environment: PYTEST
env:
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
POSTGRES_SERVER: ${{ secrets.POSTGRES_SERVER }}
POSTGRES_PORT: ${{ secrets.POSTGRES_PORT }}
POSTGRES_DB: ${{ secrets.POSTGRES_DB }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pytest
pip install httpx
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
#ruff check --select=E9,F63,F7,F82 --target-version=py39 .
# default set of ruff rules with GitHub Annotations
#ruff check --target-version=py39 .
- name: Test with pytest
run: |
echo "Tests located here"
#pytest