Skip to content

Commit

Permalink
CI: expand tests to run on different Python versions (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche authored Jan 3, 2023
1 parent 9c30ef4 commit 9c5da61
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -23,8 +24,9 @@ jobs:
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: s2geography-dev
activate-environment: spherely-dev
use-mamba: true
python-version: ${{ matrix.python-version }}

- name: Get Date
id: get-date
Expand All @@ -46,14 +48,14 @@ jobs:
uses: actions/cache@v2
with:
path: ${{ env.CONDA }}/envs
key: ${{ runner.os }}-conda-${{ hashFiles( env.env_file ) }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}
key: ${{ runner.os }}-{{ matrix.python-version }}-conda-${{ hashFiles( env.env_file ) }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}
env:
# Increase this value to reset cache if ci/environment.yml has not changed
CACHE_NUMBER: 0
id: conda-cache

- name: Update environment
run: mamba env update -n s2geography-dev -f ${{ env.env_file }}
run: mamba env update -n spherely-dev -f ${{ env.env_file }}
if: steps.conda-cache.outputs.cache-hit != 'true'

- name: Conda info
Expand Down

0 comments on commit 9c5da61

Please sign in to comment.