Skip to content

Commit

Permalink
Run unit tests on all supported python versions (#1015)
Browse files Browse the repository at this point in the history
Co-authored-by: Tania Allard <[email protected]>
  • Loading branch information
soapy1 and trallard authored Dec 16, 2024
1 parent 78008e0 commit 5ab8e4e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/test_conda_store_server_unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ jobs:
hatch env run -e lint lint
test-conda-store-server:
name: "unit-test - ${{ matrix.os}} "
name: "unit-test - ${{ matrix.python-version }} "
strategy:
matrix:
# ubuntu 22.04, macos 14, windows 2022
# os: ["ubuntu-latest", "macos-latest", "windows-latest"]
os: ["ubuntu-latest"]
python-version: ["3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
defaults:
run:
Expand All @@ -61,18 +62,14 @@ jobs:
- name: "Checkout Repository 🛎"
uses: actions/checkout@v4

- name: "Get project's default Python version 🏷️"
run: |
echo "PYTHON_VERSION_DEFAULT=$(cat .python-version-default)" >> $GITHUB_ENV
- name: "Set up env ${{ matrix.os }} 🐍"
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: conda-store-server/environment-dev.yaml
miniforge-version: latest
auto-activate-base: false
activate-environment: conda-store-server-dev
python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
python-version: ${{ matrix.python-version }}
conda-remove-defaults: "true"

# This fixes a "DLL not found" issue importing ctypes from the hatch env
Expand All @@ -82,7 +79,7 @@ jobs:
timeout_minutes: 9999
max_attempts: 6
command:
conda install --channel=conda-forge --quiet --yes python=${{ env.PYTHON_VERSION_DEFAULT }}
conda install --channel=conda-forge --quiet --yes python=${{ matrix.python-version }}
if: matrix.os == 'windows-latest'

- name: "Install conda-store server 📦"
Expand Down

0 comments on commit 5ab8e4e

Please sign in to comment.