diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 567981525..0fccc42e4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,6 +50,9 @@ jobs: main: runs-on: ubuntu-latest needs: ['lint'] + strategy: + matrix: + python-version: ["3.10", "3.11", 3.12", "3.13"] services: # Label used to access the service container postgres: @@ -77,12 +80,12 @@ jobs: with: version: 0.5.5 enable-cache: 'true' - cache-suffix: 3.12 - python-version: 3.12 + cache-suffix: ${{ matrix.python-version }} + python-version: ${{ matrix.python-version }} - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: ${{ matrix.python-version }} - name: Config id: cfg diff --git a/.github/workflows/test-conda-build.yml b/.github/workflows/test-conda-build.yml deleted file mode 100644 index babbb68ea..000000000 --- a/.github/workflows/test-conda-build.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Conda Smoke Test - -on: - push: - branches: - - main - - develop - - develop-1.9 - pull_request: - branches: - - develop - - develop-1.9 - -concurrency: - # Here the group is defined by the head_ref of the PR - group: ${{ github.workflow }}-${{ github.head_ref }} - # Here we specify that we'll cancel any "in progress" workflow of the same group. Thus if we push, ammend a commit and push - # again the previous workflow will be cancelled, thus saving us github action build minutes and avoid any conflicts - cancel-in-progress: true - -jobs: - check-conda: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: ["ubuntu-latest", "macos-latest", "windows-latest"] - python-version: ["3.10", "3.11", "3.12"] - - steps: - - uses: actions/checkout@v4 - - - name: Cache conda - uses: actions/cache@v4 - 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-${{ env.CACHE_NUMBER }}-${{ - hashFiles('conda-environment.yml') }} - - - uses: conda-incubator/setup-miniconda@v3 - with: - environment-file: conda-environment.yml - auto-update-conda: true - python-version: ${{ matrix.python-version}} - - - name: Bash - shell: bash -l {0} - run: | - pip install . - python --version - datacube --version - conda env export