@@ -17,10 +17,10 @@ jobs:
1717 strategy :
1818 matrix :
1919 script : [
20- ' scripts/irm/irm_ate_coverage .py' ,
21- ' scripts/irm/irm_atte_coverage .py' ,
22- ' scripts/irm/irm_cate_coverage .py' ,
23- ' scripts/irm/irm_gate_coverage .py' ,
20+ ' scripts/irm/irm_ate .py' ,
21+ ' scripts/irm/irm_atte .py' ,
22+ ' scripts/irm/irm_cate .py' ,
23+ ' scripts/irm/irm_gate .py' ,
2424 ' scripts/irm/irm_ate_sensitivity.py' ,
2525 ' scripts/irm/irm_atte_sensitivity.py' ,
2626 ]
@@ -52,28 +52,37 @@ jobs:
5252 with :
5353 ref : ${{ env.TARGET_BRANCH }}
5454
55+ - name : Install uv
56+ uses : astral-sh/setup-uv@v5
57+ with :
58+ version : " 0.7.8"
59+
5560 - name : Set up Python
5661 uses : actions/setup-python@v5
5762 with :
58- python-version : ' 3.12 '
63+ python-version-file : " monte-cover/pyproject.toml "
5964
60- - name : Install dependencies
65+ - name : Install Monte-Cover
6166 run : |
62- python -m pip install --upgrade pip
63- pip install -r requirements.txt
67+ cd monte-cover
68+ uv venv
69+ uv sync
6470
6571 - name : Install DoubleML from correct branch
6672 run : |
67- pip uninstall -y doubleml
68- pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
73+ source monte-cover/.venv/bin/activate
74+ uv pip uninstall doubleml
75+ uv pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
6976
7077 - name : Set up Git configuration
7178 run : |
7279 git config --global user.name 'github-actions'
7380 git config --global user.email 'github-actions@github.com'
7481
7582 - name : Run scripts
76- run : python ${{ matrix.script }}
83+ run : |
84+ source monte-cover/.venv/bin/activate
85+ uv run ${{ matrix.script }}
7786
7887 - name : Commit any existing changes
7988 run : |
91100 git pull --rebase origin ${{ env.TARGET_BRANCH }}
92101 git push origin ${{ env.TARGET_BRANCH }}
93102 env :
94- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
103+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments