-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
34 additions
and
20 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 |
---|---|---|
|
@@ -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: cimg/python:3.9 | ||
- image: cimg/python:3.10 | ||
environment: | ||
TOXENV=<< parameters.jobname >> | ||
steps: | ||
|
@@ -42,8 +42,10 @@ 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: | ||
|
@@ -55,7 +57,7 @@ jobs: | |
jobname: | ||
type: string | ||
docker: | ||
- image: cimg/python:3.9 | ||
- image: cimg/python:3.10 | ||
environment: | ||
TOXENV: << parameters.jobname >> | ||
GIT_SSH_COMMAND: ssh -i ~/.ssh/id_rsa_6464b6a8248237ca368fd4690777d921 | ||
|
@@ -74,7 +76,8 @@ jobs: | |
- run: git clone [email protected]:sunpy/sunpy-figure-tests.git --depth 1 -b sunkit-image-${CIRCLE_BRANCH} ~/sunpy-figure-tests/ | ||
# Generate Reference images | ||
- run: pip install --user -U tox tox-pypi-filter | ||
- run: tox -- --mpl-generate-path=/home/circleci/sunpy-figure-tests/figures/$TOXENV | tee toxlog | ||
- 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 ./sunkit_image/tests/$hashlib /home/circleci/sunpy-figure-tests/figures/$TOXENV/ | ||
|
@@ -96,16 +99,16 @@ workflows: | |
matrix: | ||
parameters: | ||
jobname: | ||
- "py38-figure" | ||
- "py310-figure" | ||
|
||
- deploy-reference-images: | ||
name: baseline-<< matrix.jobname >> | ||
matrix: | ||
parameters: | ||
jobname: | ||
- "py38-figure" | ||
- "py310-figure" | ||
requires: | ||
- "py38-figure" | ||
- << 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
File renamed without changes.
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