Version 2.1.0 bump #85
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Python CI - test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
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 |