diff --git a/.github/workflows/linux-test.yml b/.github/workflows/linux-test.yml index dd7b564..757b4a1 100644 --- a/.github/workflows/linux-test.yml +++ b/.github/workflows/linux-test.yml @@ -19,36 +19,37 @@ jobs: steps: - name: Checkout github repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 + - name: Create LFS file list + run: git lfs ls-files --long | cut -d ' ' -f1 | sort > .lfs-assets-id - - name: Cache conda - uses: actions/cache@v2 - env: - cache-name: cache-conda-env + - name: LFS Cache + uses: actions/cache@v3 with: - path: ~/conda_pkgs_dir - key: ${{ runner.os }}-conda-${{ env.cache-name }}-${{ hashFiles('environment.yml') }} + path: .git/lfs/objects + key: ${{ matrix.os }}-lfs-${{ hashFiles('.lfs-assets-id') }} + restore-keys: | + ${{ matrix.os }}-lfs- + - name: Git LFS Pull + run: git lfs pull - - name: Install package dependencies with setup-miniconda@v2 + - name: Setup miniconda uses: conda-incubator/setup-miniconda@v2 with: - python-version: ${{ matrix.python-version }} + auto-update-conda: true miniforge-variant: Mambaforge - channels: conda-forge - channel-priority: true + channels: conda-forge # defaults automatically added + python-version: ${{ matrix.python-version }} activate-environment: geoapis environment-file: environment.yml + use-mamba: true auto-activate-base: false - use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! - - run: | - conda info - conda list - conda config --show-sources - conda config --show - printenv | sort + - name: Conda list + shell: pwsh + run: conda list - name: Install test dependencies run: | diff --git a/tests/test_lidar/test.py b/tests/test_lidar/test_case.py similarity index 100% rename from tests/test_lidar/test.py rename to tests/test_lidar/test_case.py diff --git a/tests/test_lidar_by_name/test.py b/tests/test_lidar_by_name/test_case.py similarity index 100% rename from tests/test_lidar_by_name/test.py rename to tests/test_lidar_by_name/test_case.py diff --git a/tests/test_lidar_subfolders/test.py b/tests/test_lidar_subfolders/test_case.py similarity index 100% rename from tests/test_lidar_subfolders/test.py rename to tests/test_lidar_subfolders/test_case.py diff --git a/tests/test_raster_linz_in_bounds/test.py b/tests/test_raster_linz_in_bounds/test_case.py similarity index 100% rename from tests/test_raster_linz_in_bounds/test.py rename to tests/test_raster_linz_in_bounds/test_case.py diff --git a/tests/test_raster_lris_in_bounds/test.py b/tests/test_raster_lris_in_bounds/test_case.py similarity index 100% rename from tests/test_raster_lris_in_bounds/test.py rename to tests/test_raster_lris_in_bounds/test_case.py diff --git a/tests/test_vector_linz/test.py b/tests/test_vector_linz/test_case.py similarity index 100% rename from tests/test_vector_linz/test.py rename to tests/test_vector_linz/test_case.py diff --git a/tests/test_vector_linz_in_bounds/test.py b/tests/test_vector_linz_in_bounds/test_case.py similarity index 100% rename from tests/test_vector_linz_in_bounds/test.py rename to tests/test_vector_linz_in_bounds/test_case.py diff --git a/tests/test_vector_lris/test.py b/tests/test_vector_lris/test_case.py similarity index 100% rename from tests/test_vector_lris/test.py rename to tests/test_vector_lris/test_case.py diff --git a/tests/test_vector_lris_in_bounds/test.py b/tests/test_vector_lris_in_bounds/test_case.py similarity index 100% rename from tests/test_vector_lris_in_bounds/test.py rename to tests/test_vector_lris_in_bounds/test_case.py diff --git a/tests/test_vector_stats_nz/test.py b/tests/test_vector_stats_nz/test_case.py similarity index 100% rename from tests/test_vector_stats_nz/test.py rename to tests/test_vector_stats_nz/test_case.py diff --git a/tests/test_vector_stats_nz_in_bounds/test.py b/tests/test_vector_stats_nz_in_bounds/test_case.py similarity index 100% rename from tests/test_vector_stats_nz_in_bounds/test.py rename to tests/test_vector_stats_nz_in_bounds/test_case.py