premium #22771
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: premium | |
on: | |
repository_dispatch: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo main | |
uses: actions/checkout@v2 # checkout the repository content to github runner. | |
- name: Install Google Chrome # Using shell script to install Google Chrome | |
run: | | |
chmod +x ./scripts/InstallChrome.sh | |
./scripts/InstallChrome.sh | |
- name: setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 #install the python needed | |
- name: Install dependencies | |
run: | | |
python -m pip install pip==22.0.4 | |
pip install flake8 pytest | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
pip install --upgrade webdriver-manager | |
- name: execute py script # run the run.py to get the latest data | |
run: | | |
python find_appointments_premium.py True | |
env: | |
bearer_token: ${{ secrets.BEARER_TOKEN }} # if run.py requires passwords..etc, set it as secrets | |
consumer_key: ${{ secrets.CONSUMER_KEY }} # if run.py requires passwords..etc, set it as secrets | |
consumer_secret: ${{ secrets.CONSUMER_SECRET }} # if run.py requires passwords..etc, set it as secrets | |
access_token: ${{ secrets.ACCESS_TOKEN }} # if run.py requires passwords..etc, set it as secrets | |
access_token_secret: ${{ secrets.ACCESS_TOKEN_SECRET }} # if run.py requires passwords..etc, set it as secrets | |
access_token_github: ${{ secrets.ACCESS_TOKEN_GITHUB }} # if run.py requires passwords..etc, set it as secrets | |
gcp_token: ${{ secrets.GCP_TOKEN }} # if run.py requires passwords..etc, set it as secrets | |
subscription_key: ${{ secrets.AZURE_KEY }} # if run.py requires passwords..etc, set it as secrets | |