diff --git a/.github/workflows/package-release.yaml b/.github/workflows/package-release.yaml index 730e8fa..0108b6a 100644 --- a/.github/workflows/package-release.yaml +++ b/.github/workflows/package-release.yaml @@ -3,8 +3,8 @@ name: Package and Release on: push: branches: ["main"] -# tags: -# - '*' + tags: + - '*' workflow_dispatch: permissions: @@ -155,7 +155,6 @@ jobs: retention-days: 7 - name: Release uses: softprops/action-gh-release@v2 - if: startsWith(github.ref, 'refs/tags/') with: prerelease: true repository: 3DGI/geodepot diff --git a/.github/workflows/test-lint.yaml b/.github/workflows/test-lint.yaml index 46c2406..800adb9 100644 --- a/.github/workflows/test-lint.yaml +++ b/.github/workflows/test-lint.yaml @@ -15,10 +15,13 @@ jobs: os: [ ubuntu-latest, windows-latest, macos-latest ] include: - os: windows-latest + conda_path: C:\Miniconda conda_exe: C:\Miniconda\Scripts\conda.exe - os: ubuntu-latest + conda_path: /usr/share/miniconda conda_exe: conda - os: macos-latest + conda_path: /Users/runner/miniconda3 conda_exe: conda steps: @@ -54,7 +57,14 @@ jobs: run: | # $CONDA is an environment variable pointing to the root of the miniconda directory echo $CONDA\Scripts >> $GITHUB_PATH + - name: Cache conda environment + id: cache-conda + uses: actions/cache@v4 + with: + path: ${{ matrix.conda_path }} + key: ${{ runner.os }}-conda - name: Install dependencies + if: steps.cache-conda.outputs.cache-hit != 'true' run: | ${{ matrix.conda_exe }} install -y --name base --solver=classic conda-forge::conda-libmamba-solver conda-forge::libmamba conda-forge::libmambapy conda-forge::libarchive ${{ matrix.conda_exe }} install -y --name base --solver libmamba --channel conda-forge proj=9.4 click=8.1 requests=2.32 fabric=3.2 gdal=3.9 pdal=2.7 python-pdal=3.4 pyinstaller=6.10 pytest ruff