diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index e6119d23ef..5325856d68 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 233e442f16..1c49786f6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: "" @@ -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: | @@ -75,4 +79,4 @@ jobs: flags: unittests env_vars: OS,PYTHON name: codecov-umbrella - fail_ci_if_error: false \ No newline at end of file + fail_ci_if_error: false diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index 4f671335ae..8850d91f3b 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -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 @@ -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/gh-action-pypi-publish@v1.5.0 + with: + user: __token__ + password: ${{ secrets.PYPI_TOKEN }} + verbose: true