Skip to content

Commit

Permalink
Add roman_datamodels testing job (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson authored Nov 25, 2024
1 parent a8b3452 commit 5500e73
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ jobs:
coverage: codecov
- linux: py312-xdist
- linux: py313-xdist
roman_datamodels:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@924441154cf3053034c6513d5e06c69d262fb9a6 # v1.13.0
with:
envs: |
- linux: roman_datamodels-xdist
14 changes: 14 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ envlist =
requires =
tox-uv

[main]
roman_datamodels_repo = https://github.com/spacetelescope/roman_datamodels.git

[testenv:check-style]
description = Run all style and file checks with pre-commit
skip_install = true
Expand All @@ -22,6 +25,8 @@ description =
xdist: using parallel processing
devdeps: Run with select dev dependencies
oldestdeps: Run with oldest direct dependencies
allowlist_externals =
roman_datamodels: git
set_env =
devdeps: UV_INDEX = https://pypi.anaconda.org/liberfa/simple https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
devdeps: UV_INDEX_STRATEGY = unsafe-any-match
Expand All @@ -35,10 +40,19 @@ deps =
devdeps: pyerfa>=0.0.dev0
devdeps: numpy>=0.0.dev0
devdeps: astropy>=0.0.dev0
roman_datamodels: roman_datamodels[test] @ git+{[main]roman_datamodels_repo}
change_dir =
roman_datamodels: {env_tmp_dir}
commands_pre =
oldestdeps: minimum_dependencies
oldestdeps: uv pip install -r {env_tmp_dir}/requirements-min.txt
{list_dependencies_command}
roman_datamodels: git clone -n --depth=1 --filter=blob:none {[main]roman_datamodels_repo}
roman_datamodels: git --git-dir={env_tmp_dir}/roman_datamodels/.git checkout HEAD pyproject.toml
roman_datamodels: git --git-dir={env_tmp_dir}/roman_datamodels/.git checkout HEAD tests/*
commands =
pytest \
roman_datamodels: --config-file={env_tmp_dir}/pyproject.toml tests \
xdist: -n auto \
cov: --cov --cov-report=term-missing --cov-report=xml \
{posargs}
Expand Down

0 comments on commit 5500e73

Please sign in to comment.