Skip to content

Run Selenium On GitHub Action #28

Run Selenium On GitHub Action

Run Selenium On GitHub Action #28

Workflow file for this run

name: Run Selenium On GitHub Action
on:
schedule:
- cron: '0 18 13 * *'
workflow_dispatch:
jobs:
scrape:
runs-on: ubuntu-latest
steps:
- name: Checking out repo
uses: actions/checkout@v3
- name: Setting up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Installing package list
run: apt list --installed
- name: Removing previous chrome instances on runner
run: sudo apt purge google-chrome-stable
# Need to fetch reqs if needed
- name: Installing all necessary packages
run: pip install chromedriver-autoinstaller selenium pyvirtualdisplay splitwise
- name: Install xvfb
run: sudo apt-get install xvfb
- name: Running the Python script
run: python main.py
env:
ELEC_PASS: ${{secrets.ELEC_PASS}}
GAS_PASS: ${{secrets.GAS_PASS}}
SW_CONSUMER_KEY: ${{secrets.SW_CONSUMER_KEY}}
SW_CONSUMER_SECRET: ${{secrets.SW_CONSUMER_SECRET}}
SW_API_KEY: ${{secrets.SW_API_KEY}}