Basic Example Test #15
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: Basic Example Test | |
on: | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'info' | |
type: choice | |
options: | |
- info | |
- warning | |
- debug | |
push: | |
branches: | |
- main | |
jobs: | |
scheduled: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout repo | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.11 | |
- uses: actions/cache@v2 | |
name: Configure pip caching | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install playwright | |
python -m pip install playwright-stealth | |
python -m pip install pyotp | |
python -m pip install python-vipaccess | |
python -m pip install python-dotenv | |
python -m playwright install firefox | |
- name: run test | |
env: | |
PYTHONPATH: ${{ github.workspace }} | |
SCHWAB_USERNAME: ${{ secrets.SCHWAB_USERNAME }} | |
SCHWAB_PASSWORD: ${{ secrets.SCHWAB_PASSWORD }} | |
SCHWAB_TOTP: ${{ secrets.SCHWAB_TOTP }} | |
run: python example/example.py |