-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into bias-monitor-django-db
- Loading branch information
Showing
93 changed files
with
7,926 additions
and
3,364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
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: ${{ (github.event_name == 'release') && (github.event.action == 'released') }} | ||
secrets: | ||
pypi_token: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }} | ||
freeze: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
[ "ubuntu-latest", "macos-latest" ] | ||
python-version: | ||
[ "3.11", "3.12" ] | ||
fail-fast: false | ||
name: freeze versions (Python ${{ matrix.python-version }}, ${{ matrix.os }}) | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- 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 | ||
with: | ||
args: --strict --pattern "default-unprefixed" --style semver | ||
- id: filename | ||
run: echo "filename=jwql_${{ steps.version.outputs.version }}_conda_${{ runner.os }}_${{ runner.arch }}_py${{ matrix.python-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 == 'released') | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
file: ${{ steps.filename.outputs.filename }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", "3.12" ] | ||
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dependencies: | ||
- firefox | ||
- python |
Oops, something went wrong.