From 2c115e765a9943ea89c51a02aa0614c0edcf1244 Mon Sep 17 00:00:00 2001 From: Arun Kannawadi Date: Wed, 25 Feb 2026 10:06:55 -0500 Subject: [PATCH 1/4] Stop caching pip --- .github/workflows/build.yml | 1 - .github/workflows/ci.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ffbe111f..0d8196bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,6 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - cache: pip - name: Install build tools and test dependencies run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b45bb2e3..225e11e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,6 @@ jobs: uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - cache: pip - name: Install build tools and test dependencies run: | From c4ed7aeac80e0537f8d489c5106e37b40a37d3e4 Mon Sep 17 00:00:00 2001 From: Arun Kannawadi Date: Wed, 25 Feb 2026 10:15:58 -0500 Subject: [PATCH 2/4] Switch to uv --- .github/workflows/build.yml | 15 +++++++-------- .github/workflows/ci.yml | 9 ++++----- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0d8196bb..1b800cef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,28 +17,27 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 + - name: Set up uv + uses: astral-sh/setup-uv@v7 with: python-version: ${{ matrix.python-version }} - name: Install build tools and test dependencies run: | - python -m pip install --upgrade pip - pip install build twine pytest pytest-cov + uv add --dev build twine pytest pytest-cov - name: Build the package - run: python -m build + run: uv run python -m build - name: Install package (editable) - run: pip install -e . + run: uv pip install -e . - name: Check the distribution - run: twine check dist/* + run: uv run twine check dist/* - name: Run tests with coverage run: | - pytest --strict-markers --cov=roman_imsim tests/ + uv run pytest --strict-markers --cov=roman_imsim tests/ - name: Upload coverage report uses: actions/upload-artifact@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 225e11e1..5f7a73d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,18 +18,17 @@ jobs: lfs: true submodules: true - - name: Set up Python - uses: actions/setup-python@v6 + - name: Set up uv + uses: astral-sh/setup-uv@v7 with: python-version: ${{ matrix.python-version }} - name: Install build tools and test dependencies run: | - python -m pip install --upgrade pip - pip install build twine pytest pytest-cov + uv add --dev build twine pytest pytest-cov - name: Install package (editable) - run: pip install -e . + run: uv pip install -e . - name: Run GalSim run: | From 234518615e7e9527b26db3bbff46362b18526a34 Mon Sep 17 00:00:00 2001 From: Arun Kannawadi Date: Wed, 25 Feb 2026 10:23:05 -0500 Subject: [PATCH 3/4] uv run galsim --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f7a73d5..ad2efc43 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - name: Run GalSim run: | pushd roman_imsim_testdata - galsim hack.yaml + uv run galsim hack.yaml popd - name: Run unit tests From b29ee21595a99684cee3744094e48b254a7eb404 Mon Sep 17 00:00:00 2001 From: Arun Kannawadi Date: Wed, 25 Feb 2026 12:01:17 -0500 Subject: [PATCH 4/4] uv run pytest --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad2efc43..852c966d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: - name: Run unit tests run: | - pytest --strict-markers tests/test_end_to_end.py + uv run pytest --strict-markers tests/test_end_to_end.py # - name: Upload coverage report # uses: actions/upload-artifact@v4