Skip to content

Commit 35fbc21

Browse files
committed
Add tests and ci instructions
1 parent 0e18bab commit 35fbc21

14 files changed

+1997
-42
lines changed

.travis.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Travis Continuos Integration
2-
# Currently only tests notebook files
3-
# Based on https://conda.pydata.org/docs/travis.html
4-
sudo: false # use container based build
1+
# Travis Continuous Integration
2+
# For mamba links see https://mamba.readthedocs.io/en/latest/installation.html
3+
# For sample travis file see https://conda.pydata.org/docs/travis.html
4+
dist: xenial
55
language: python
6-
dist: focal
6+
77
notifications:
88
email: false
99

@@ -18,25 +18,19 @@ before_install:
1818
echo "Only doc files were updated, not running the CI."
1919
exit
2020
fi
21-
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
22-
- bash miniconda.sh -b -p $HOME/miniconda
23-
- export PATH="$HOME/miniconda/bin:$PATH"
21+
- curl micro.mamba.pm/install.sh | bash
22+
- export PATH="$HOME/micromamba/bin:$PATH"
2423
- hash -r
25-
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
26-
- conda update -q conda
27-
- conda info -a
24+
- micromamba config --set always_yes yes --set changeps1 no --set show_channel_urls true
2825

2926
install:
30-
- conda env create --file ci/environment.yml
31-
- source activate proplot-dev
32-
- conda list
33-
- which conda
27+
- micromamba env create --file ci/environment.yml
28+
- micromamba activate proplot-dev
29+
- micromamba list
30+
- which micromamba
3431
- which python
3532
- python setup.py sdist bdist_wheel
3633
- pip install --user ./dist/*.whl
3734

3835
script:
3936
- ci/run-linter.sh
40-
- pushd docs
41-
- make html
42-
- popd

ci/environment.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ channels:
77
dependencies:
88
- python==3.8
99
- numpy==1.19.5
10-
- pandas
11-
- xarray
1210
- matplotlib==3.2.2
1311
- cartopy==0.20.2
14-
- ipykernel
15-
- pandoc
12+
- seaborn
13+
- pandas
14+
- xarray
15+
- pint
1616
- python-build
1717
- setuptools
1818
- setuptools_scm
@@ -26,14 +26,6 @@ dependencies:
2626
- black
2727
- doc8
2828
- pytest
29-
- pytest-sugar
3029
- pyqt5
31-
- docutils==0.16
32-
- sphinx>=3.0
33-
- sphinx-copybutton
34-
- sphinx-rtd-light-dark
35-
- jinja2==2.11.3
36-
- markupsafe==2.0.1
37-
- nbsphinx==0.8.1
3830
- jupytext
39-
- git+https://github.com/proplot-dev/sphinx-automodapi@proplot-mods
31+
- git+https://github.com/proplot-dev/pytest-mpl@proplot-mods

ci/run-linter.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ flake8 proplot docs --exclude .ipynb_checkpoints --max-line-length=88 --ignore=W
1212
echo '[isort]'
1313
isort --recursive --check-only --line-width=88 --skip __init__.py --multi-line=3 --force-grid-wrap=0 --trailing-comma proplot
1414

15+
echo '[pytest]'
16+
pytest proplot
17+
1518
# echo '[black]'
1619
# black --check -S proplot
1720

0 commit comments

Comments
 (0)