Skip to content

Commit de92c4e

Browse files
CI: static analysis with np-dev
1 parent 309018c commit de92c4e

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yml

+37
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,40 @@ jobs:
142142
- name: Upload dev docs
143143
run: rsync -az --delete doc/build/html/ docs@${{ secrets.server_ip }}:/usr/share/nginx/pandas/pandas-docs/dev
144144
if: github.event_name == 'push'
145+
146+
numpy-types:
147+
name: Numpy Type Annotations
148+
runs-on: ubuntu-latest
149+
steps:
150+
- name: Update for build environment
151+
run: |
152+
sudo apt-get update
153+
sudo apt-get install -y build-essential
154+
sudo apt-get clean
155+
- name: Setting conda path
156+
run: echo ::add-path::$CONDA/bin
157+
- name: Update conda
158+
run: |
159+
conda config --set quiet true --set always_yes true
160+
conda update -n base -c defaults conda
161+
conda list
162+
- name: Checkout pandas
163+
uses: actions/checkout@v2
164+
- name: Update conda environment
165+
run: |
166+
conda env update -n pandas-dev --file=environment.yml
167+
conda list
168+
- name: Update numpy using wheel from nightly
169+
run: |
170+
source activate pandas-dev
171+
pip install --extra-index-url https://pypi.anaconda.org/scipy-wheels-nightly/simple --pre numpy
172+
conda list
173+
- name: Remove pandas
174+
run: |
175+
source activate pandas-dev
176+
conda uninstall -y --force pandas || true
177+
conda list
178+
- name: Typing validation
179+
run: |
180+
source activate pandas-dev
181+
ci/code_checks.sh typing

0 commit comments

Comments
 (0)