|
1 | 1 | name: Set up pandas
|
2 | 2 | description: Runs all the setup steps required to have a built pandas ready to use
|
3 |
| -inputs: |
4 |
| - environment-file: |
5 |
| - default: environment.yml |
6 |
| - pyarrow-version: |
7 |
| - required: false |
8 |
| - is-pypy: |
9 |
| - default: false |
10 |
| - environment-name: |
11 |
| - default: pandas-dev |
12 |
| - python-version: |
13 |
| - required: false |
14 | 3 | runs:
|
15 | 4 | using: composite
|
16 | 5 | steps:
|
17 |
| - - name: Set Arrow version in ${{ inputs.environment-file }} to ${{ inputs.pyarrow-version }} |
18 |
| - run: | |
19 |
| - grep -q ' - pyarrow' ${{ inputs.environment-file }} |
20 |
| - sed -i"" -e "s/ - pyarrow/ - pyarrow=${{ inputs.pyarrow-version }}/" ${{ inputs.environment-file }} |
21 |
| - cat ${{ inputs.environment-file }} |
22 |
| - shell: bash |
23 |
| - if: ${{ inputs.pyarrow-version }} |
| 6 | + - name: Setting conda path |
| 7 | + run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH |
| 8 | + shell: bash -el {0} |
24 | 9 |
|
25 |
| - - name: Set Python version in ${{ inputs.environment-file }} to ${{ inputs.python-version }} |
26 |
| - run: | |
27 |
| - echo " - python=${{ inputs.pyarrow-version }}" >> ${{ inputs.environment-file }} |
28 |
| - cat ${{ inputs.environment-file }} |
29 |
| - shell: bash |
30 |
| - if: ${{ inputs.python-version }} |
31 |
| - |
32 |
| - - name: Pin setuptools (GH#44980) |
33 |
| - run: | |
34 |
| - echo ' - setuptools <60' >> ${{ inputs.environment-file }} |
35 |
| - shell: bash |
36 |
| - |
37 |
| - - name: Install ${{ inputs.environment-file }} (Python ${{ inputs.python-version }}) |
38 |
| - uses: conda-incubator/setup-miniconda@v2 |
39 |
| - with: |
40 |
| - activate-environment: ${{ inputs.environment-name }} |
41 |
| - environment-file: ${{ inputs.environment-file }} |
42 |
| - channel-priority: strict |
43 |
| - channels: conda-forge |
44 |
| - mamba-version: "0.22" |
45 |
| - use-mamba: true |
46 |
| - if: ${{ inputs.is-pypy == 'false' }} # No pypy3.8 support |
47 |
| - |
48 |
| - - name: Setup PyPy |
49 |
| - uses: actions/setup-python@v3 |
50 |
| - with: |
51 |
| - python-version: "pypy-3.8" |
52 |
| - if: ${{ inputs.is-pypy == 'true' }} |
53 |
| - |
54 |
| - - name: Setup PyPy dependencies |
55 |
| - # TODO: re-enable cov, its slowing the tests down though |
56 |
| - run: pip install Cython numpy python-dateutil pytz pytest>=6.0 pytest-xdist>=1.31.0 hypothesis>=5.5.3 pytest-asyncio>=0.17 |
57 |
| - shell: bash |
58 |
| - if: ${{ inputs.is-pypy == 'true' }} |
| 10 | + - name: Setup environment and build pandas |
| 11 | + run: ci/setup_env.sh |
| 12 | + shell: bash -el {0} |
0 commit comments