Skip to content

Commit a092f30

Browse files
committed
update workflow for uv
1 parent 42551e4 commit a092f30

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/did_sim.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,28 +48,32 @@ jobs:
4848
with:
4949
ref: ${{ env.TARGET_BRANCH }}
5050

51+
- name: Install uv
52+
uses: astral-sh/setup-uv@v5
53+
with:
54+
version: "0.6.11"
55+
5156
- name: Set up Python
5257
uses: actions/setup-python@v5
5358
with:
54-
python-version: '3.12'
59+
python-version-file: "monte-cover/pyproject.toml"
5560

56-
- name: Install dependencies
61+
- name: Install Monte-Cover
5762
run: |
58-
python -m pip install --upgrade pip
59-
pip install -r requirements.txt
63+
uv sync
6064
6165
- name: Install DoubleML from correct branch
6266
run: |
63-
pip uninstall -y doubleml
64-
pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
67+
uv pip uninstall -y doubleml
68+
uv pip install "doubleml @ git+https://github.com/DoubleML/doubleml-for-py@${{ env.DML_BRANCH }}"
6569
6670
- name: Set up Git configuration
6771
run: |
6872
git config --global user.name 'github-actions'
6973
git config --global user.email 'github-actions@github.com'
7074
7175
- name: Run scripts
72-
run: python ${{ matrix.script }}
76+
run: uv run python ${{ matrix.script }}
7377

7478
- name: Commit any existing changes
7579
run: |

0 commit comments

Comments
 (0)