forked from sunpy/ndcube
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
180 changed files
with
4,670 additions
and
2,077 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,9 @@ | ||
#!/bin/bash -e | ||
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig | ||
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM | ||
shasum -a 256 -c codecov.SHA256SUM | ||
chmod +x codecov | ||
./codecov "$@" |
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ skip-check: &skip-check | |
command: bash .circleci/early_exit.sh | ||
|
||
merge-check: &merge-check | ||
name: Check if we need to merge upstream master | ||
name: Check if we need to merge upstream main | ||
command: | | ||
if [[ -n "${CIRCLE_PR_NUMBER}" ]]; then | ||
git fetch origin --tags | ||
|
@@ -24,15 +24,15 @@ apt-run: &apt-install | |
name: Install apt packages | ||
command: | | ||
sudo apt update | ||
sudo apt install -y graphviz build-essential libopenjp2-7 python3-dev | ||
sudo apt install -y libopenjp2-7 | ||
jobs: | ||
figure: | ||
parameters: | ||
jobname: | ||
type: string | ||
docker: | ||
- image: circleci/python:3.8 | ||
- image: cimg/python:3.10 | ||
environment: | ||
TOXENV=<< parameters.jobname >> | ||
steps: | ||
|
@@ -42,19 +42,22 @@ jobs: | |
- run: *merge-check | ||
- run: *apt-install | ||
- run: pip install --user -U tox tox-pypi-filter | ||
- run: tox | ||
- run: curl -s https://codecov.io/bash | bash | ||
- run: tox -v | ||
- run: | ||
name: Running codecov | ||
command: bash -e .circleci/codecov_upload.sh -f ".tmp/${TOXENV}/coverage.xml" | ||
- store_artifacts: | ||
path: .tmp/<< parameters.jobname >>/figure_test_images | ||
- run: | ||
name: "Image comparison page is available at: " | ||
command: echo "${CIRCLE_BUILD_URL}/artifacts/${CIRCLE_NODE_INDEX}/.tmp/${TOXENV}/figure_test_images/fig_comparison.html" | ||
|
||
deploy-reference-images: | ||
parameters: | ||
jobname: | ||
type: string | ||
docker: | ||
- image: circleci/python:3.8 | ||
- image: cimg/python:3.10 | ||
environment: | ||
TOXENV: << parameters.jobname >> | ||
GIT_SSH_COMMAND: ssh -i ~/.ssh/id_rsa_b1c8b094a8ec67162b0f18a949a6b1db | ||
|
@@ -72,8 +75,9 @@ jobs: | |
- run: git config --global user.email "ndcube@circleci" && git config --global user.name "ndcube Circle CI" | ||
- run: git clone [email protected]:sunpy/sunpy-figure-tests.git --depth 1 -b ndcube-${CIRCLE_BRANCH} ~/sunpy-figure-tests/ | ||
# Generate Reference images | ||
- run: pip install --user -U tox codecov tox-pypi-filter | ||
- run: tox -- --mpl-generate-path=/home/circleci/sunpy-figure-tests/figures/$TOXENV | tee toxlog | ||
- run: pip install --user -U tox tox-pypi-filter | ||
- run: rm -rf /home/circleci/sunpy-figure-tests/figures/$TOXENV/* | ||
- run: tox -v -- --mpl-generate-path=/home/circleci/sunpy-figure-tests/figures/$TOXENV | tee toxlog | ||
- run: | | ||
hashlib=$(grep "^figure_hashes.*\.json$" toxlog) | ||
cp ./ndcube/visualization/tests/$hashlib /home/circleci/sunpy-figure-tests/figures/$TOXENV/ | ||
|
@@ -87,25 +91,26 @@ jobs: | |
workflows: | ||
version: 2 | ||
|
||
figure-tests: | ||
jobs: | ||
- figure: | ||
name: << matrix.jobname >> | ||
matrix: | ||
parameters: | ||
jobname: | ||
- "py38-figure" | ||
- "py39-figure-devdeps" | ||
- "py310-figure" | ||
- "py310-figure-devdeps" | ||
|
||
- deploy-reference-images: | ||
name: baseline-<< matrix.jobname >> | ||
matrix: | ||
parameters: | ||
jobname: | ||
- "py38-figure" | ||
- "py39-figure-devdeps" | ||
- "py310-figure" | ||
- "py310-figure-devdeps" | ||
requires: | ||
- "py38-figure" | ||
- "py39-figure-devdeps" | ||
- << matrix.jobname >> | ||
filters: | ||
branches: | ||
only: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,9 @@ Aoife Maria Ryan <[email protected]> aoife <[email protected]> | |
Baptiste Pellorce <[email protected]> Baptiste PELLORCE <[email protected]> | ||
Baptiste Pellorce <[email protected]> Baptiste Pellorce <37335327+BaptistePellorceAstro@users.noreply.github.com> | ||
Yash Sharma <[email protected]> Yash <[email protected]> | ||
Laura Hayes <[email protected]> hayesla <[email protected]> | ||
Marcus Hughes <[email protected]> jmbhughes <[email protected]> | ||
Ricky O'Steen <[email protected]> Ricky O'Steen <[email protected]> | ||
Kris Stern <[email protected]> Kris Stern <[email protected]> | ||
Matthew J. West <[email protected]> Dr Matthieu Wes <[email protected]> | ||
Will Barnes <[email protected]> Will Barnes <[email protected]> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: rtd_ndcube | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.11 | ||
- pip | ||
- graphviz!=2.42.*,!=2.43.* |
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,13 +1,13 @@ | ||
default_context: | ||
package_name: ndcube | ||
module_name: ndcube | ||
short_description: A package for multi-dimensional contiguious and non-contiguious coordinate aware arrays. | ||
short_description: A package for multi-dimensional contiguous and non-contiguous coordinate aware arrays. | ||
author_name: The SunPy Community | ||
author_email: [email protected] | ||
license: BSD 2-Clause | ||
project_url: http://docs.sunpy.org/projects/ndcube/ | ||
github_repo: sunpy/ndcube | ||
minimum_python_version: 3.7 | ||
minimum_python_version: 3.9 | ||
use_compiled_extensions: n | ||
include_example_code: n | ||
_provide_setuppy_fallback: y |
Oops, something went wrong.