@@ -13,53 +13,32 @@ jobs:
1313
1414 strategy :
1515 matrix :
16- python-version : [3.6, 3.9 ]
16+ python-version : ["3.8", "3.10" ]
1717
1818 steps :
1919 - name : Checkout Code
20- uses : actions/checkout@v2
21-
22- # Ref: https://github.com/marketplace/actions/setup-miniconda
23- - name : Cache conda
24- uses : actions/cache@v1
25- env :
26- # Increase this value to reset cache if etc/example-environment.yml
27- # has not changed
28- CACHE_NUMBER : 0
29- with :
30- path : ~/conda_pkgs_dir
31- key :
32- ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
33- hashFiles('etc/example-environment.yml') }}
20+ uses : actions/checkout@v3
3421
35- - name : Install Miniconda
36- uses : conda-incubator /setup-miniconda @v2
22+ - name : Setup Python
23+ uses : actions /setup-python @v2
3724 with :
38- auto-update-conda : true
3925 python-version : ${{ matrix.python-version }}
40- activate-environment : mizani-ci-unittests
4126
4227 - name : Install Packages
4328 shell : bash -l {0}
4429 run : |
45- conda install scipy pandas matplotlib
46- conda install pytest-cov
47- pip install palettable
48- pip install -e .
30+ pip install -e ".[testing]"
4931
5032 - name : Environment Information
5133 shell : bash -l {0}
5234 run : |
53- conda info
54- conda list
5535 pip list
5636
5737 - name : Run Tests
5838 shell : bash -l {0}
5939 run : |
6040 coverage erase
6141 make test
62- ls -la
6342
6443 - name : Upload coverage to Codecov
6544 uses : codecov/codecov-action@v1
@@ -77,28 +56,16 @@ jobs:
7756
7857 strategy :
7958 matrix :
80- python-version : [3.8 ]
59+ python-version : ["3.10" ]
8160 steps :
8261 - name : Checkout Code
83- uses : actions/checkout@v2
62+ uses : actions/checkout@v3
8463
8564 - name : Setup Python
8665 uses : actions/setup-python@v2
8766 with :
8867 python-version : ${{ matrix.python-version }}
8968
90- # Ref: https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-python#caching-dependencies
91- - name : Cache pip
92- uses : actions/cache@v2
93- with :
94- # This path is specific to Ubuntu
95- path : ~/.cache/pip
96- # Look to see if there is a cache hit for the corresponding requirements file
97- key : ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
98- restore-keys : |
99- ${{ runner.os }}-pip-
100- ${{ runner.os }}-
101-
10269 - name : Install Packages
10370 shell : bash -l {0}
10471 run : pip install flake8
@@ -121,37 +88,21 @@ jobs:
12188
12289 strategy :
12390 matrix :
124- python-version : [3.8 ]
91+ python-version : ["3.10" ]
12592
12693 steps :
12794 - name : Checkout Code
128- uses : actions/checkout@v2
95+ uses : actions/checkout@v3
12996
13097 - name : Setup Python
13198 uses : actions/setup-python@v2
13299 with :
133100 python-version : ${{ matrix.python-version }}
134101
135- # Ref: https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-python#caching-dependencies
136- - name : Cache pip
137- uses : actions/cache@v2
138- with :
139- # This path is specific to Ubuntu
140- path : ~/.cache/pip
141- # Look to see if there is a cache hit for the corresponding requirements file
142- key : ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
143- restore-keys : |
144- ${{ runner.os }}-pip-
145- ${{ runner.os }}-
146-
147102 - name : Install Packages
148103 shell : bash -l {0}
149104 run : |
150- conda install scipy pandas matplotlib
151- pip install palettable
152- pip install -r requirements/doc.txt
153- pip install -e .
154- python setup.py install
105+ pip install -e ".[doc]"
155106
156107 - name : Environment Information
157108 shell : bash -l {0}
@@ -161,5 +112,5 @@ jobs:
161112 shell : bash -l {0}
162113 run : |
163114 pushd doc
164- SPHINXOPTS=-W fails
115+ SPHINXOPTS=-W
165116 make html && popd
0 commit comments