diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ffbe111f..1b800cef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,29 +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 }} - cache: pip - 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 b45bb2e3..852c966d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,29 +18,27 @@ 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 }} - cache: pip - 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: | pushd roman_imsim_testdata - galsim hack.yaml + uv run galsim hack.yaml popd - 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