Skip to content

Commit ff65da7

Browse files
authored
Merge pull request #7 from DoubleML/s-add-rdd
Add RDD Coverage Simulation
2 parents dc0cd1d + b816971 commit ff65da7

File tree

65 files changed

+914
-268
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+914
-268
lines changed

.github/workflows/apo_sim.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ jobs:
5959
6060
- name: Install DoubleML from correct branch
6161
run: |
62-
pip install git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}
62+
pip uninstall -y doubleml
63+
pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
6364
6465
- name: Set up Git configuration
6566
run: |

.github/workflows/did_sim.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ jobs:
6060
6161
- name: Install DoubleML from correct branch
6262
run: |
63-
pip install git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}
63+
pip uninstall -y doubleml
64+
pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
6465
6566
- name: Set up Git configuration
6667
run: |

.github/workflows/iivm_sim.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ jobs:
5959
6060
- name: Install DoubleML from correct branch
6161
run: |
62-
pip install git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}
62+
pip uninstall -y doubleml
63+
pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
6364
6465
- name: Set up Git configuration
6566
run: |

.github/workflows/irm_sim.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ jobs:
6464
6565
- name: Install DoubleML from correct branch
6666
run: |
67-
pip install git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}
67+
pip uninstall -y doubleml
68+
pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
6869
6970
- name: Set up Git configuration
7071
run: |

.github/workflows/pliv_sim.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ jobs:
5959
6060
- name: Install DoubleML from correct branch
6161
run: |
62-
pip install git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}
62+
pip uninstall -y doubleml
63+
pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
6364
6465
- name: Set up Git configuration
6566
run: |

.github/workflows/plr_sim.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
6363
- name: Install DoubleML from correct branch
6464
run: |
65+
pip uninstall -y doubleml
6566
pip install git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}
6667
6768
- name: Set up Git configuration

.github/workflows/quant_sim.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ jobs:
6161
6262
- name: Install DoubleML from correct branch
6363
run: |
64-
pip install git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}
64+
pip uninstall -y doubleml
65+
pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
6566
6667
- name: Set up Git configuration
6768
run: |

.github/workflows/rdd_sim.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
types: [run-rdd-scripts]
1313

1414
jobs:
15-
run-apo-scripts:
15+
run-rdd-scripts:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
@@ -60,7 +60,14 @@ jobs:
6060
6161
- name: Install DoubleML from correct branch
6262
run: |
63-
pip install git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}
63+
pip uninstall -y doubleml
64+
pip install "doubleml[rdd] @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
65+
66+
- name: Install RDFlex from main branch
67+
run: |
68+
pip uninstall -y doubleml
69+
pip install git+https://github.com/DoubleML/doubleml-rdflex.git@main
70+
pip install rdrobust
6471
6572
- name: Set up Git configuration
6673
run: |
@@ -72,7 +79,7 @@ jobs:
7279

7380
- name: Commit any existing changes
7481
run: |
75-
git add results/irm
82+
git add results/rdd
7683
git commit -m "Update results from script: ${{ matrix.script }}" || echo "No changed results to commit"
7784
7885
- name: Wait random time

.github/workflows/sim.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,14 @@ jobs:
4545
4646
echo "HTTP Status: $RESPONSE"
4747
cat response.txt
48+
49+
- name: Trigger RDD Scripts Workflows
50+
run: |
51+
RESPONSE=$(curl -s -o response.txt -w "%{http_code}" -X POST \
52+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
53+
-H "Accept: application/vnd.github.everest-preview+json" \
54+
https://api.github.com/repos/${{ github.repository }}/dispatches \
55+
-d '{"event_type": "run-rdd-scripts", "client_payload": { "doubleml_py_branch": "${{ github.event.inputs.doubleml-py-branch }}", "target_branch": "${{ github.ref_name }}"}}')
56+
57+
echo "HTTP Status: $RESPONSE"
58+
cat response.txt

.github/workflows/ssm_sim.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ jobs:
6060
6161
- name: Install DoubleML from correct branch
6262
run: |
63-
pip install git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}
63+
pip uninstall -y doubleml
64+
pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
6465
6566
- name: Set up Git configuration
6667
run: |

0 commit comments

Comments
 (0)