Skip to content

Commit 37067ae

Browse files
authored
Merge pull request #15 from DoubleML/dev
Update Main
2 parents 8083798 + a67148b commit 37067ae

Some content is hidden

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

41 files changed

+3127
-81
lines changed

.github/workflows/did_sim.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
script: [
2020
'scripts/did/did_pa_atte_coverage.py',
2121
'scripts/did/did_cs_atte_coverage.py',
22+
'scripts/did/did_pa_multi.py',
2223
]
2324

2425
steps:
@@ -48,28 +49,37 @@ jobs:
4849
with:
4950
ref: ${{ env.TARGET_BRANCH }}
5051

52+
- name: Install uv
53+
uses: astral-sh/setup-uv@v5
54+
with:
55+
version: "0.6.11"
56+
5157
- name: Set up Python
5258
uses: actions/setup-python@v5
5359
with:
54-
python-version: '3.12'
60+
python-version-file: "monte-cover/pyproject.toml"
5561

56-
- name: Install dependencies
62+
- name: Install Monte-Cover
5763
run: |
58-
python -m pip install --upgrade pip
59-
pip install -r requirements.txt
64+
cd monte-cover
65+
uv venv
66+
uv sync
6067
6168
- name: Install DoubleML from correct branch
6269
run: |
63-
pip uninstall -y doubleml
64-
pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
70+
source monte-cover/.venv/bin/activate
71+
uv pip uninstall doubleml
72+
uv pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
6573
6674
- name: Set up Git configuration
6775
run: |
6876
git config --global user.name 'github-actions'
6977
git config --global user.email 'github-actions@github.com'
7078
7179
- name: Run scripts
72-
run: python ${{ matrix.script }}
80+
run: |
81+
source monte-cover/.venv/bin/activate
82+
uv run ${{ matrix.script }}
7383
7484
- name: Commit any existing changes
7585
run: |

.github/workflows/plr_sim.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,28 +50,37 @@ jobs:
5050
with:
5151
ref: ${{ env.TARGET_BRANCH }}
5252

53+
- name: Install uv
54+
uses: astral-sh/setup-uv@v5
55+
with:
56+
version: "0.6.11"
57+
5358
- name: Set up Python
5459
uses: actions/setup-python@v5
5560
with:
56-
python-version: '3.12'
61+
python-version-file: "monte-cover/pyproject.toml"
5762

58-
- name: Install dependencies
63+
- name: Install Monte-Cover
5964
run: |
60-
python -m pip install --upgrade pip
61-
pip install -r requirements.txt
65+
cd monte-cover
66+
uv venv
67+
uv sync
6268
6369
- name: Install DoubleML from correct branch
6470
run: |
65-
pip uninstall -y doubleml
66-
pip install git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}
71+
source monte-cover/.venv/bin/activate
72+
uv pip uninstall doubleml
73+
uv pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
6774
6875
- name: Set up Git configuration
6976
run: |
7077
git config --global user.name 'github-actions'
7178
git config --global user.email 'github-actions@github.com'
7279
7380
- name: Run scripts
74-
run: python ${{ matrix.script }}
81+
run: |
82+
source monte-cover/.venv/bin/activate
83+
uv run ${{ matrix.script }}
7584
7685
- name: Commit any existing changes
7786
run: |

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
__pycache__/
2+
3+
# Logs
4+
monte-cover/logs/
5+
*.log

doc/_website.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ website:
2525
- plm/pliv.qmd
2626
- text: "DID"
2727
menu:
28+
- did/did_multi.qmd
2829
- did/did_pa.qmd
2930
- did/did_cs.qmd
3031
- text: "SSM"

0 commit comments

Comments
 (0)