Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 3358b2e

Browse files
committed
Enable 3.11 conda for bovine
Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
1 parent 1a4d2b5 commit 3358b2e

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,38 @@ on:
1111
workflow_dispatch:
1212

1313
jobs:
14-
ci-venv:
15-
name: CI (venv)
14+
ci:
15+
name: CI ${{ matrix.python-version }} (conda: ${{ matrix.conda }})
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19+
conda: [true, false]
1920
python-version: ["3.11"]
20-
steps:
21-
- uses: actions/checkout@v3
22-
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v4
24-
with:
25-
python-version: ${{ matrix.python-version }}
26-
- run: ./run-tests.sh
27-
28-
ci-conda:
29-
name: CI (conda)
30-
runs-on: ubuntu-latest
3121
defaults:
3222
run:
3323
# https://github.com/conda-incubator/setup-miniconda#use-a-default-shell
3424
shell: bash -el {0}
3525
steps:
36-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
3727
- uses: conda-incubator/setup-miniconda@v2
28+
if: ${{ matrix.conda == true }}
3829
with:
3930
activate-environment: scitt
4031
environment-file: environment.yml
41-
- run: |
32+
python-version: ${{ matrix.python-version }}
33+
- name: Run tests with conda
34+
if: ${{ matrix.conda == true }}
35+
run: |
4236
python -m pip install -e .
4337
python -m pytest
38+
- name: Set up Python ${{ matrix.python-version }}
39+
if: ${{ matrix.conda == false }}
40+
uses: actions/setup-python@v4
41+
with:
42+
python-version: ${{ matrix.python-version }}
43+
- name: Run tests with venv
44+
if: ${{ matrix.conda == false }}
45+
run: ./run-tests.sh
4446

4547
ci-cd-build-and-push-image-container:
4648
name: CI/CD (container)

0 commit comments

Comments
 (0)