Skip to content

Commit

Permalink
Explicitly setting python versions via matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Old-Shatterhand committed Apr 5, 2024
1 parent 29647da commit c197454
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,22 @@ on:

jobs:
publish:
strategy:
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4

- name: Setup Mamba
uses: conda-incubator/setup-miniconda@v3
with:
python-version: '3.10'
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: MPP
Expand All @@ -28,7 +36,7 @@ jobs:
- name: Build DataSAIL for linux-64
shell: bash -l {0}
run: |
conda-build -q --variants "{python: [3.8, 3.9, 3.10, 3.11, 3.12]}" -c conda-forge -c bioconda --output-folder . --no-test recipe
conda-build -q -c conda-forge -c bioconda --output-folder . --no-test recipe
- name: Convert DataSAIL to osx-64
shell: bash -l {0}
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/publish_lite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,22 @@ on:

jobs:
publish:
strategy:
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4

- name: Setup Mamba
uses: conda-incubator/setup-miniconda@v3
with:
python-version: '3.10'
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: MPP
Expand All @@ -28,7 +36,7 @@ jobs:
- name: Build DataSAIL for linux-64
shell: bash -l {0}
run: |
conda-build -q --variants "{python: [3.8, 3.9, 3.10, 3.11, 3.12]}" -c conda-forge -c bioconda --output-folder . --no-test recipe_lite
conda-build -q --variants -c conda-forge -c bioconda --output-folder . --no-test recipe_lite
- name: Convert DataSAIL to osx-64, osx-arm64, win-64
shell: bash -l {0}
Expand Down

0 comments on commit c197454

Please sign in to comment.