Added YouTube Data API v3 usage example #290
This file contains hidden or 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: Validate Model Estimates | |
| on: | |
| push: | |
| branches: | |
| - "assignment/did*" | |
| - "assignment/fes*" | |
| - "assignment/ivs*" | |
| - "assignment/rdd*" | |
| - "assignment/rct*" | |
| jobs: | |
| # Differrences in Differences | |
| did: | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref_name, 'assignment/did') | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.11 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Assert DID | |
| working-directory: assignments/did/code | |
| run: python grader.py | |
| # Fixed Effects | |
| fes: | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref_name, 'assignment/fes') | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.11 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Assert FEs | |
| working-directory: assignments/fes/code | |
| run: python grader.py | |
| # Instrumental Variables | |
| ivs: | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref_name, 'assignment/ivs') | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.11 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Assert IVs | |
| working-directory: assignments/ivs/code | |
| run: python grader.py | |
| # Regression Discontinuity Design | |
| rdd: | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref_name, 'assignment/rdd') | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.11 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Assert RDD | |
| working-directory: assignments/rdd/code | |
| run: python grader.py | |
| # [TEST WORKFLOW] Randomized Controlled Trial | |
| rct: | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref_name, 'assignment/rct') | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.11 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Linting | |
| run: flake8 --max-line-length=88 | |
| - name: Assert RCT | |
| working-directory: assignments/rct/code | |
| run: python grader.py |