Skip to content

Merge pull request #1 from cado-security/chrisdoman-patch-1 #5

Merge pull request #1 from cado-security/chrisdoman-patch-1

Merge pull request #1 from cado-security/chrisdoman-patch-1 #5

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
default:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Set up Environment
run: |
python -m pip install --upgrade pip
pip3 install -r ./requirements.txt
- name: Unit Tests
run: |
pwd
python3 -m unittest discover ./tests/
- name: Static Checks
run: |
pip3 install flake8 mypy
mypy --config-file ./ci/mypy.cfg ./
flake8 --config ./ci/flake8.cfg
# If this fails run: python3 -m black . --config ./ci/black.toml
python3 -m black . --config ./ci/black.toml --check
python3 -m pip_audit -r requirements.txt