Skip to content

Commit

Permalink
Merge branch 'develop' into update/actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett authored May 27, 2024
2 parents 6c26be2 + 1cd2e36 commit 2366881
Show file tree
Hide file tree
Showing 53 changed files with 5,136 additions and 1,833 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: build

on:
release:
types: [ released ]
pull_request:
workflow_dispatch:

defaults:
run:
shell: micromamba-shell {0}

jobs:
build:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
with:
upload_to_pypi: false
freeze:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.11"
fail-fast: false
name: freeze versions (Python ${{ matrix.python-version }})
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
environment-name: jwql-${{ runner.os }}-py${{ matrix.python-version }}
environment-file: environment.yml
create-args: >-
python=${{ matrix.python-version }}
conda
init-shell: none
generate-run-shell: true
- run: pip install .
- run: pip list
- id: version
uses: mtkennerly/dunamai-action@v1
- id: filename
run: echo "filename=jwql_conda_py${{ matrix.python-version }}_${{ steps.version.outputs.version }}.yml" >> $GITHUB_OUTPUT
- run: conda env export --no-build | grep -v "name:" | grep -v "prefix:" > ${{ steps.filename.outputs.filename }}
- run: cat ${{ steps.filename.outputs.filename }}
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.filename.outputs.filename }}
path: ${{ steps.filename.outputs.filename }}
- if: (github.event_name == 'release' && github.event.action == 'published')
uses: svenstaro/upload-release-action@v2
with:
file: ${{ steps.filename.outputs.filename }}


50 changes: 28 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,60 @@
name: JWQL CI
name: test

on: [push, pull_request]
on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash -l {0}

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.x"
python-version: "3.11"
- run: pip install bandit
- run: bandit ./jwql/ -c .bandit

test:
name: test (Python ${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 5
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.9, "3.10"]

os: [ "ubuntu-latest", "macos-latest" ]
python-version: [ "3.11" ]
fail-fast: false
env:
PYTHONUNBUFFERED: 1
defaults:
run:
shell: micromamba-shell {0}
steps:
- uses: actions/checkout@v4

- uses: mamba-org/provision-with-micromamba@v15
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: ./environment_python_${{ matrix.python-version }}.yml
cache-env: true
cache-downloads: true
environment-name: jwql-${{ runner.os }}-py${{ matrix.python-version }}
environment-file: environment.yml
create-args: >-
python=${{ matrix.python-version }}
init-shell: none
generate-run-shell: true

- run: pip install -e .[test] pytest-xdist

- run: pip install -e .[test]
- run: pip list

- run: conda env export
- run: micromamba env export

- uses: supercharge/[email protected]
- if: runner.os == 'Linux'
uses: supercharge/[email protected]
with:
redis-version: 5.0
if: runner.os == 'Linux'

- run: python -c "import jwql; print('Version ' + jwql.__version__); print('Path ' + jwql.__path__[0])"

- run: pytest jwql/tests/
- run: pytest -n auto jwql/tests/
8 changes: 3 additions & 5 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.9"
jobs:
post_install:
- pip install sqlalchemy==1.4.46
python: "3.11"

# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand All @@ -27,6 +24,7 @@ sphinx:
# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: rtd_requirements.txt
- method: pip
path: .
extra_requirements:
- docs
70 changes: 70 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,75 @@
## What's Changed

1.2.8 (2024-04-18)
==================

Web Application
~~~~~~~~~~~~~~~

Project & API Documentation
~~~~~~~~~~~~~~~~~~~~~~~~~~~
- final model define for faking by @BradleySappington


1.2.7 (2024-04-18)
==================

Web Application
~~~~~~~~~~~~~~~

Project & API Documentation
~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Import monitor models by @bhilbert4


1.2.6 (2024-04-15)
==================

Web Application
~~~~~~~~~~~~~~~
- Update NIRCam Background Monitor plots to handle new Claw Monitor columns by @bsunnquist

Project & API Documentation
~~~~~~~~~~~~~~~~~~~~~~~~~~~
- add default to read_patt_num by @BradleySappington
- migration work for next RC by @BradleySappington
- Fix database empty fields by @BradleySappington


1.2.5 (2024-03-19)
==================

Web Application
~~~~~~~~~~~~~~~
- Fix Bokeh `file_html` Call by @mfixstsci
- Update Bad Pix Exclude Line by @mfixstsci
- Interactive preview image - updates for Bokeh 3 by @bhilbert4

Project & API Documentation
~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Allow creation of pngs from 3D and 4D arrays by @bhilbert4
- Add max length to charfield by @BradleySappington
- Header fix by @BradleySappington


1.2.4 (2024-03-11)
==================

Web Application
~~~~~~~~~~~~~~~
- Fix Broken Dashboard - ReImplement Anomaly Dash @BradleySappington
- Add more info to image- and exposure-level pages @bhilbert4

Project & API Documentation
~~~~~~~~~~~~~~~~~~~~~~~~~~~
- create pull_jwql_branch.sh by @BradleySappington
- Claw monitor migrate by @york-stsci
- Update readnoise monitor to use django database models by @york-stsci
- Migration to django management by @york-stsci
- Get subarray lists from datamodels schema by @bhilbert4
- Retrieve program number and category efficiently by @bhilbert4


1.2.3 (2024-01-26)
==================

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Getting `jwql` up and running on your own computer requires four steps, detailed

### Prerequisites

It is highly suggested that contributors have a working installation of `anaconda` or `miniconda` for Python 3.9+. Downloads and installation instructions are available here:
It is highly suggested that contributors have a working installation of `anaconda` or `miniconda` for Python 3.10+. Downloads and installation instructions are available here:

- [Miniconda](https://conda.io/miniconda.html)
- [Anaconda](https://www.continuum.io/downloads)
Expand Down Expand Up @@ -86,13 +86,13 @@ source activate base/root
Lastly, create the `jwql` environment via one of the `environment.yml` files (currently `environment_python_3.9.yml`, for python 3.9, and `environment_python_3.10.yml`, for python 3.10, are supported by `jwql`):

```
conda env create -f environment_python_3.9.yml
conda env create -f environment_python_3.10.yml
```

or

```
conda env create -f environment_python_3.10.yml
conda env create -f environment_python_3.11.yml
```

### Configuration File
Expand Down
36 changes: 0 additions & 36 deletions codecov.yml

This file was deleted.

3 changes: 3 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies:
- firefox
- python
74 changes: 0 additions & 74 deletions environment_python_3.10.yml

This file was deleted.

Loading

0 comments on commit 2366881

Please sign in to comment.