mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
fix redis mocking for test runner
This commit is contained in:
49
.github/workflows/checks.yml
vendored
49
.github/workflows/checks.yml
vendored
@@ -10,9 +10,8 @@ env:
|
||||
FLASK_APP: application.py
|
||||
FLASK_ENV: development
|
||||
WERKZEUG_DEBUG_PIN: off
|
||||
REDIS_URL: redis://adminredis:6379/0
|
||||
DEV_REDIS_URL: redis://adminredis:6379/0
|
||||
REDIS_ENABLED: False
|
||||
REDIS_URL: "redis://you-forgot-to-mock-a-redis-call-to"
|
||||
REDIS_ENABLED: True
|
||||
ANTIVIRUS_ENABLED: 0
|
||||
NODE_VERSION: 16.15.1
|
||||
ADMIN_CLIENT_ID: notify-admin
|
||||
@@ -30,28 +29,28 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/setup-project
|
||||
- name: Run style checks
|
||||
run: flake8 .
|
||||
- name: Check imports alphabetized
|
||||
run: isort --check-only ./app ./tests
|
||||
- name: Run js tests
|
||||
run: npm test
|
||||
- name: Run py tests
|
||||
run: pytest -n4 --maxfail=10
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/setup-project
|
||||
- name: Run style checks
|
||||
run: flake8 .
|
||||
- name: Check imports alphabetized
|
||||
run: isort --check-only ./app ./tests
|
||||
- name: Run js tests
|
||||
run: npm test
|
||||
- name: Run py tests
|
||||
run: pytest -n4 --maxfail=10
|
||||
|
||||
dependency-audits:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/setup-project
|
||||
- uses: trailofbits/gh-action-pip-audit@v1.0.0
|
||||
with:
|
||||
inputs: requirements.txt requirements_for_test.txt
|
||||
ignore-vulns: PYSEC-2022-237
|
||||
- name: Run npm audit
|
||||
run: make npm-audit
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/setup-project
|
||||
- uses: trailofbits/gh-action-pip-audit@v1.0.0
|
||||
with:
|
||||
inputs: requirements.txt requirements_for_test.txt
|
||||
ignore-vulns: PYSEC-2022-237
|
||||
- name: Run npm audit
|
||||
run: make npm-audit
|
||||
|
||||
static-scan:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -75,12 +74,12 @@ jobs:
|
||||
- name: Run OWASP Baseline Scan
|
||||
uses: zaproxy/action-baseline@v0.7.0
|
||||
with:
|
||||
docker_name: 'owasp/zap2docker-weekly'
|
||||
target: 'http://localhost:6012'
|
||||
docker_name: "owasp/zap2docker-weekly"
|
||||
target: "http://localhost:6012"
|
||||
fail_action: true
|
||||
allow_issue_writing: false
|
||||
rules_file_name: 'zap.conf'
|
||||
cmd_options: '-I'
|
||||
rules_file_name: "zap.conf"
|
||||
cmd_options: "-I"
|
||||
|
||||
a11y-scan:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user