mirror of
https://github.com/scito/extract_otp_secrets.git
synced 2026-01-04 11:53:35 +01:00
ci: pip install pytest-mock
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -36,7 +36,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install flake8 pytest
|
||||
pip install flake8 pytest pytest-mock
|
||||
pip install --use-pep517 -r requirements.txt
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
|
||||
@@ -108,8 +108,10 @@ done
|
||||
BIN="$HOME/bin"
|
||||
DOWNLOADS="$HOME/downloads"
|
||||
|
||||
PYTHON="python3.11"
|
||||
PIP="pip3.11"
|
||||
PIPENV="python3.11 -m pipenv"
|
||||
PIPENV="$PYTHON -m pipenv"
|
||||
FLAKE8="$PYTHON -m flake8"
|
||||
|
||||
# Upgrade protoc
|
||||
|
||||
@@ -201,6 +203,16 @@ eval "$cmd"
|
||||
|
||||
$PIPENV run python --version
|
||||
|
||||
# Lint
|
||||
|
||||
cmd="$FLAKE8 . --count --select=E9,F63,F7,F82 --show-source --statistics"
|
||||
if $interactive ; then askContinueYn "$cmd"; else echo -e "${cyan}$cmd${reset}";fi
|
||||
eval "$cmd"
|
||||
|
||||
cmd="$FLAKE8 . --count --exit-zero --max-complexity=10 --max-line-length=200 --statistics"
|
||||
if $interactive ; then askContinueYn "$cmd"; else echo -e "${cyan}$cmd${reset}";fi
|
||||
eval "$cmd"
|
||||
|
||||
# Test
|
||||
|
||||
cmd="pytest"
|
||||
|
||||
Reference in New Issue
Block a user