CI test fix #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: Integration Test for CLI workflow | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
branches: | |
- master | |
paths-ignore: | |
- "**.md" | |
- "LICENSE" | |
- "frontend/**" | |
- ".github/workflows/frontend-ci-test.yaml" | |
- ".github/workflows/deploy-gh-pages.yaml" | |
- ".github/workflows/deploy-gyft-do.yaml" | |
- "metaploy/**" | |
- ".gitignore" | |
- "app.py" | |
- "wsgi.py" | |
- ".dockerignore" | |
- "Dofkerfile" | |
- "Dofkerfile-dev" | |
jobs: | |
cli-ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.13 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.13' | |
- name: Debug connectivity | |
run: | | |
echo "DNS Lookup:" | |
nslookup www.iitkgp.ac.in | |
echo "Trying to connect with curl:" | |
curl -v --tlsv1.2 https://www.iitkgp.ac.in/holidays | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Setup env | |
env: | |
ERPCREDS : ${{ secrets.ERPCREDS }} | |
TOKEN_JSON : ${{ secrets.TOKEN_JSON }} | |
CREDENTIALS_JSON : ${{ secrets.CREDENTIALS_JSON }} | |
run: | | |
echo "$ERPCREDS" > erpcreds.py | |
echo "$TOKEN_JSON" > token.json | |
echo "$CREDENTIALS_JSON" > credentials.json | |
- name: Run the project | |
run: python gyft.py -DO |