Skip to content

Reproduce CORS error #77

Reproduce CORS error

Reproduce CORS error #77

Workflow file for this run

name: Python CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, '3.10']
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Dependencies
run: |
pip install .
pip install -r tests/requirements.txt
- name: Lint with flake8
run: flake8
- name: Test with Python3
working-directory: tests
run: python3 -m unittest
- name: Demo dependencies
working-directory: demo
run: pip install -r requirements.txt
- name: Inject dummy example config
working-directory: demo
run: printf "[duo]\nclient_id=DIAAAAAAAAAAAAAAAAAA\nclient_secret=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\napi_hostname=example.duosecurity.com\nredirect_uri=http://localhost:8080\nfailmode=closed\n" > ./duo.conf
- name: Verify flask can load demo
working-directory: demo
run: flask routes