test_eo3converter: mock AWS services #4414
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Conda Smoke Test | |
on: | |
pull_request: | |
paths: | |
- '**' | |
push: | |
branches: | |
- develop | |
paths: | |
- '**' | |
permissions: {} | |
# When a PR is updated, cancel the jobs from the previous version. Merges | |
# do not define head_ref, so use run_id to never cancel those jobs. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
check-conda: | |
timeout-minutes: 45 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
python-version: ["3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
- name: Cache conda | |
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 | |
env: | |
# Increase this value to reset cache if setup.py has not changed | |
CACHE_NUMBER: 0 | |
with: | |
path: ~/conda_pkgs_dir | |
key: | |
${{ runner.os }}-conda-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}-${{ | |
hashFiles('conda-environment.yml') }} | |
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0 | |
continue-on-error: true | |
id: conda1 | |
with: | |
environment-file: conda-environment.yml | |
auto-update-conda: true | |
condarc-file: condarc.yml | |
python-version: ${{ matrix.python-version}} | |
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0 | |
if: steps.conda1.outcome == 'failure' | |
with: | |
environment-file: conda-environment.yml | |
auto-update-conda: true | |
condarc-file: condarc.yml | |
python-version: ${{ matrix.python-version}} | |
- name: Get pip cache dir | |
id: pip-cache | |
shell: bash | |
run: | | |
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | |
- name: pip cache | |
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 | |
with: | |
path: ${{ steps.pip-cache.outputs.dir }} | |
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Bash | |
shell: bash -l {0} | |
run: | | |
pip install . | |
python --version | |
rio --show-versions | |
datacube --version | |
conda env export |