Skip to content

IRCTC Automation Booking #3

IRCTC Automation Booking

IRCTC Automation Booking #3

Workflow file for this run

name: IRCTC Automation Booking
on:
# schedule:
# # “At minute 0 and 30 past every hour from 12 through 21.”
# - cron: '0,30 12-21 * * *'
push:
branches:
- 'main'
pull_request:
workflow_dispatch:
jobs:
IRCTC-Booking:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip' # caching pip dependencies
- run: |
pip install -r irctc-captcha-solver/requirements.txt
python3 irctc-captcha-solver/app.py ""
# python3 irctc-captcha-solver/app.py "" is used for models to load before starting tatkal tickets
- name: Install Node.js and npm
uses: actions/setup-node@v4
with:
node-version: '21.7.1'
- name: Running IRCTC Cypress Script
uses: cypress-io/github-action@v6
# continue-on-error: true
with:
browser: chrome
command: npx cypress run --record --key a15b31a6-b9ee-4678-b9ac-f45a190851fe --browser chrome --env USERNAME=${{secrets.USERNAME}},PASSWORD=${{secrets.PASSWORD}}