Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
environment:

PYTHON_ARCH: "64"
PYTHON: "C:\\Miniconda38-x64"

matrix:
- PYTHON_VERSION: "3.8"

install:
# windows config (for installation)
- cmd: "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- cmd: setlocal
- cmd: set ANACONDA_API_TOKEN=
# conda config
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda install conda-build anaconda-client
- pip install -i https://pypi.anaconda.org/psyplot/simple --no-deps psyplot-ci-orb
- conda config --add channels conda-forge
- conda config --add channels psyplot
- conda info -a
- conda list
# windows config
- cmd: endlocal
- cmd: 'SET PYTHONWARNINGS=ignore:mode:DeprecationWarning:docutils.io:245'
- cmd: "IF NOT DEFINED APPVEYOR_REPO_TAG_NAME (SET GIT_BRANCH=%APPVEYOR_REPO_BRANCH%)"
- cmd: "IF NOT DEFINED APPVEYOR_REPO_TAG_NAME (conda config --add channels psyplot/label/%APPVEYOR_REPO_BRANCH:/=-%)"
- cmd: "set PSYPLOT_REFERENCES=%APPVEYOR_BUILD_FOLDER%/tests/reference_figures"
- cmd: "set PSYPLOT_TESTFIGURES=%APPVEYOR_BUILD_FOLDER%/tests/test_figures"

build: off

test_script:
- cmd: setlocal
- cmd: set ANACONDA_API_TOKEN=
- cmd: conda build ci/conda-recipe --python %PYTHON_VERSION%
- cmd: endlocal

after_test:
- cmd: 7z a reference_figures.zip %APPVEYOR_BUILD_FOLDER%\tests\reference_figures\*.png
- cmd: 7z a test_figures.zip %APPVEYOR_BUILD_FOLDER%\tests\test_figures\*.png

deploy_script:
- cmd: "
IF NOT DEFINED APPVEYOR_REPO_TAG_NAME (
deploy-conda-recipe -l %APPVEYOR_REPO_BRANCH% -py %PYTHON_VERSION% ci/conda-recipe
) ELSE (
deploy-conda-recipe -py %PYTHON_VERSION% ci/conda-recipe
)"

artifacts:
- path: reference_figures.zip
name: Reference figures
- path: test_figures.zip
name: Test figures
132 changes: 132 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
version: 2.1

orbs:
psyplot: psyplot/psyplot-ci-orb@1.5.22
mattermost-plugin-notify: nathanaelhoun/mattermost-plugin-notify@1.2.0

executors:
default: psyplot/default
macos: psyplot/macos

parameters:
unit-test-executor:
description: Executor for the unit tests. Can be default or macos
type: string
default: default
deploy-release:
description: Deploy the comment as a new release to github and pypi
type: boolean
default: false
test-matplotlib-3_3:
description: Run the test suite for matplotlib 3.3
type: boolean
default: true
test-matplotlib-latest:
description: Run the test suite for the latest version of matplotlib
type: boolean
default: true
parallelism:
description: How many parallel jobs to execute
type: integer
default: 2
build_docs:
description: Build the documentation
type: boolean
default: true


workflows:
build-and-test:
unless: << pipeline.parameters.deploy-release >>
jobs:
- psyplot/install-and-build:
name: install
exec_environment: << pipeline.parameters.unit-test-executor >>
setup_env: true
build_args: "--no-test"
build_docs: << pipeline.parameters.build_docs >>
env_packages: pytest-cov dask psyplot-gui statsmodels netcdf4 seaborn pytest-qt
- psyplot/test-parallel:
name: test-matplotlib-latest
parallelism: << pipeline.parameters.parallelism >>
run-job: << pipeline.parameters.test-matplotlib-latest >>
build_refs: true
requires:
- install
- psyplot/test-parallel:
name: test-matplotlib-3.3
parallelism: << pipeline.parameters.parallelism >>
run-job: << pipeline.parameters.test-matplotlib-3_3 >>
build_refs: true
packages: matplotlib=3.3
requires:
- install
- psyplot/build-docs:
name: test-docs
run-job: << pipeline.parameters.build_docs >>
builders: linkcheck
requires:
- install
- mattermost-plugin-notify/approval-notification:
name: notify-deploy
context: mattermost
message: >-
Hello @all! A workflow on https://app.circleci.com/pipelines/github/psyplot/psy-maps is awaiting your approval.
Please check the uploaded docs and builds prior to approval.
requires:
- test-matplotlib-latest
- test-matplotlib-3.3
- test-docs
- hold-for-deploy:
type: approval
requires:
- notify-deploy
- psyplot/deploy-pkg:
exec_environment: << pipeline.parameters.unit-test-executor >>
context: anaconda
requires:
- hold-for-deploy
- psyplot/deploy-docs:
fingerprint: "d7:6e:93:a2:b7:0c:cb:00:cf:fe:78:65:67:0f:c4:fd"
run-job: << pipeline.parameters.build_docs >>
requires:
- hold-for-deploy
filters:
branches:
only: master
- psyplot/trigger-release-workflow:
context: trigger-release
filters:
branches:
only: master
requires:
- psyplot/deploy-pkg
- psyplot/deploy-docs
publish-release:
when: << pipeline.parameters.deploy-release >>
jobs:
- psyplot/create-tag:
ssh-fingerprints: "d7:6e:93:a2:b7:0c:cb:00:cf:fe:78:65:67:0f:c4:fd"
context: psyplot-admin
user-name: psyplot-admin
publish-release: true
publish-version-tag: true
- mattermost-plugin-notify/approval-notification:
name: notify-release
context: mattermost
message: >-
Hello @all! A new release has been created at https://github.com/psyplot/psy-maps/releases.
Please review it carefully, publish it and approve the upload to pypi.
requires:
- psyplot/create-tag
- hold-for-pypi:
type: approval
requires:
- notify-release
- psyplot/deploy-pypi:
context: pypi
requires:
- hold-for-pypi
filters:
branches:
only: master
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,5 @@ target/

# conda build files
ci/conda-recipe/recipe_append.yaml
tests/reference_figures
tests/test_figures
104 changes: 0 additions & 104 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,104 +0,0 @@
[submodule "tests/reference_figures/win32/py3.6/mpl2.0"]
path = tests/reference_figures/win32/py3.6/mpl2.0
url = https://github.com/psyplot/psy-maps-references.git
branch = win32_py3.6_mpl2.0
[submodule "tests/reference_figures/darwin/py3.6/mpl2.0"]
path = tests/reference_figures/darwin/py3.6/mpl2.0
url = https://github.com/psyplot/psy-maps-references.git
branch = darwin_py3.6_mpl2.0
[submodule "tests/reference_figures/linux/py3.6/mpl2.0"]
path = tests/reference_figures/linux/py3.6/mpl2.0
url = https://github.com/psyplot/psy-maps-references.git
branch = linux_py3.6_mpl2.0
[submodule "tests/reference_figures/linux/py3.6/mpl2.1"]
path = tests/reference_figures/linux/py3.6/mpl2.1
url = https://github.com/psyplot/psy-maps-references.git
branch = linux_py3.6_mpl2.1
[submodule "tests/reference_figures/win32/py3.6/mpl2.1"]
path = tests/reference_figures/win32/py3.6/mpl2.1
url = https://github.com/psyplot/psy-maps-references.git
branch = win32_py3.6_mpl2.1
[submodule "tests/reference_figures/darwin/py3.6/mpl2.1"]
path = tests/reference_figures/darwin/py3.6/mpl2.1
url = https://github.com/psyplot/psy-maps-references.git
branch = darwin_py3.6_mpl2.1
[submodule "tests/reference_figures/darwin/py3.6/mpl2.2"]
path = tests/reference_figures/darwin/py3.6/mpl2.2
url = https://github.com/psyplot/psy-maps-references.git
branch = darwin_py3.6_mpl2.2
[submodule "tests/reference_figures/linux/py3.6/mpl2.2"]
path = tests/reference_figures/linux/py3.6/mpl2.2
url = https://github.com/psyplot/psy-maps-references.git
branch = linux_py3.6_mpl2.2
[submodule "tests/reference_figures/win32/py3.6/mpl2.2"]
path = tests/reference_figures/win32/py3.6/mpl2.2
url = https://github.com/psyplot/psy-maps-references.git
branch = win32_py3.6_mpl2.2
[submodule "tests/reference_figures/linux/py3.7/mpl3.0"]
path = tests/reference_figures/linux/py3.7/mpl3.0
url = https://github.com/psyplot/psy-maps-references.git
branch = linux_py3.7_mpl3.0
[submodule "tests/reference_figures/darwin/py3.7/mpl3.0"]
path = tests/reference_figures/darwin/py3.7/mpl3.0
url = https://github.com/psyplot/psy-maps-references.git
branch = darwin_py3.7_mpl3.0
[submodule "tests/reference_figures/win32/py3.7/mpl3.0"]
path = tests/reference_figures/win32/py3.7/mpl3.0
url = https://github.com/psyplot/psy-maps-references.git
branch = win32_py3.7_mpl3.0
[submodule "tests/reference_figures/linux/py3.7/mpl3.1"]
path = tests/reference_figures/linux/py3.7/mpl3.1
url = https://github.com/psyplot/psy-maps-references.git
branch = linux_py3.7_mpl3.1
[submodule "tests/reference_figures/darwin/py3.7/mpl3.1"]
path = tests/reference_figures/darwin/py3.7/mpl3.1
url = https://github.com/psyplot/psy-maps-references.git
branch = darwin_py3.7_mpl3.1
[submodule "tests/reference_figures/win32/py3.7/mpl3.1"]
path = tests/reference_figures/win32/py3.7/mpl3.1
url = https://github.com/psyplot/psy-maps-references.git
branch = win32_py3.7_mpl3.1
[submodule "tests/reference_figures/darwin/py3.8/mpl3.1"]
path = tests/reference_figures/darwin/py3.8/mpl3.1
url = https://github.com/psyplot/psy-maps-references.git
branch = darwin_py3.8_mpl3.1
[submodule "tests/reference_figures/linux/py3.8/mpl3.1"]
path = tests/reference_figures/linux/py3.8/mpl3.1
url = https://github.com/psyplot/psy-maps-references.git
branch = linux_py3.8_mpl3.1
[submodule "tests/reference_figures/win32/py3.8/mpl3.1"]
path = tests/reference_figures/win32/py3.8/mpl3.1
url = https://github.com/psyplot/psy-maps-references.git
branch = win32_py3.8_mpl3.1
[submodule "tests/reference_figures/darwin/py3.7/mpl3.3"]
path = tests/reference_figures/darwin/py3.7/mpl3.3
url = https://github.com/psyplot/psy-maps-references.git
branch = darwin_py3.7_mpl3.3
[submodule "tests/reference_figures/darwin/py3.8/mpl3.3"]
path = tests/reference_figures/darwin/py3.8/mpl3.3
url = https://github.com/psyplot/psy-maps-references.git
branch = darwin_py3.8_mpl3.3
[submodule "tests/reference_figures/linux/py3.7/mpl3.3"]
path = tests/reference_figures/linux/py3.7/mpl3.3
url = https://github.com/psyplot/psy-simple-references.git
branch = linux_py3.7_mpl3.3
[submodule "tests/reference_figures/linux/py3.8/mpl3.2"]
path = tests/reference_figures/linux/py3.8/mpl3.2
url = https://github.com/psyplot/psy-simple-references.git
branch = linux_py3.8_mpl3.2
[submodule "tests/reference_figures/linux/py3.8/mpl3.3"]
path = tests/reference_figures/linux/py3.8/mpl3.3
url = https://github.com/psyplot/psy-simple-references.git
branch = linux_py3.8_mpl3.3
[submodule "tests/reference_figures/linux/py3.7/mpl3.2"]
path = tests/reference_figures/linux/py3.7/mpl3.2
url = https://github.com/psyplot/psy-simple-references.git
branch = linux_py3.7_mpl3.2
[submodule "tests/reference_figures/win32/py3.7/mpl3.2"]
path = tests/reference_figures/win32/py3.7/mpl3.2
url = https://github.com/psyplot/psy-maps-references.git
branch = win32_py3.7_mpl3.2
[submodule "tests/reference_figures/win32/py3.8/mpl3.2"]
path = tests/reference_figures/win32/py3.8/mpl3.2
url = https://github.com/psyplot/psy-maps-references.git
branch = win32_py3.8_mpl3.2
Loading