Skip to content

Commit

Permalink
FIX: Add pruning back into workflows (#1143)
Browse files Browse the repository at this point in the history
* Update build_docs.yml

* Update prune with ci.yml

* ADD: add prune command to pypi release

* ADD: Add upload to pypi back in
  • Loading branch information
mgrover1 authored Apr 22, 2022
1 parent af64029 commit fce2768
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
use-mamba: true
miniforge-variant: Mambaforge

- name: Fetch all history for all tags and branches
run: |
git fetch --prune --unshallow
- name: Set TRMM RSL path
env:
RSL_PATH: ${{ env.CONDA_PKGS_DIR }}/trmm_rsl-1.49-3
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
os: [macOS, ubuntu, Windows]
inlcude:
include:
- os: macos-latest
PLAT: arm64
INTERFACE64: ""
Expand All @@ -51,6 +51,10 @@ jobs:
- name: Set TRMM RSL path
run: |
export RSL_PATH=$CONDA/pkgs/trmm_rsl-1.49-3
- name: Fetch all history for all tags and branches
run: |
git fetch --prune --unshallow
- name: Install PyART
run: |
Expand All @@ -75,4 +79,4 @@ jobs:
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
fail_ci_if_error: false
19 changes: 19 additions & 0 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ jobs:
mamba install -c conda-forge trmm_rsl
export RSL_PATH=${{ env.CONDA_PKGS_DIR }}/trmm_rsl-1.49-3
- name: Fetch all history for all tags and branches
run: |
git fetch --prune --unshallow
- name: Install pip dependencies
env:
RSL_PATH: ${{ env.CONDA_PKGS_DIR }}/trmm_rsl-1.49-3
Expand Down Expand Up @@ -88,3 +92,18 @@ jobs:
python -m pip install wheel setuptools
python -m pip install dist/arm_pyart*.whl
python -c "import pyart; print(pyart.__version__)"
upload-to-pypi:
needs: test-built-dist
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: releases
path: dist
- name: Publish package to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
verbose: true

0 comments on commit fce2768

Please sign in to comment.