Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading