Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT: Utilize conda for build due to trmm_rsl. #1122

Merged
merged 3 commits into from
Apr 20, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
26 changes: 20 additions & 6 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,37 @@ jobs:
build-artifacts:
runs-on: ubuntu-latest
if: github.repository == 'ARM-DOE/pyart'
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2
name: Install Python
# Install dependencies
- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.8
environment-file: continuous_integration/environment-ci.yml
activate-environment: pyart-dev
auto-activate-base: false
mamba-version: '*'
use-mamba: true
miniforge-variant: Mambaforge
extra-specs: python=3.8

- name: Set TRMM RSL path
run: |
export RSL_PATH=$CONDA/pkgs/trmm_rsl-1.49-3
zssherman marked this conversation as resolved.
Show resolved Hide resolved

- name: Install dependencies
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build
python -m pip install -r requirements.txt
python -m pip install twine
- name: Build tarball and wheels
run: |
python -m pip install -e .
python -m pip install -e . --no-deps --force-reinstall
git clean -xdf
git restore -SW .
python -m build --sdist --wheel .
Expand Down
2 changes: 1 addition & 1 deletion continuous_integration/environment-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ channels:
- defaults
dependencies:
- gdal
- trmm_rsl
- numpy
- scipy
- matplotlib
Expand All @@ -23,4 +24,3 @@ dependencies:
- pip:
- pooch
- versioneer