This repository was archived by the owner on Nov 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change 11
11
workflow_dispatch :
12
12
13
13
jobs :
14
- ci-venv :
15
- name : CI (venv )
14
+ ci :
15
+ name : CI ${{ matrix.python-version }} (conda: ${{ matrix.conda }} )
16
16
runs-on : ubuntu-latest
17
17
strategy :
18
18
matrix :
19
+ conda : [true, false]
19
20
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
31
21
defaults :
32
22
run :
33
23
# https://github.com/conda-incubator/setup-miniconda#use-a-default-shell
34
24
shell : bash -el {0}
35
25
steps :
36
- - uses : actions/checkout@v3
26
+ - uses : actions/checkout@v4
37
27
- uses : conda-incubator/setup-miniconda@v2
28
+ if : ${{ matrix.conda == true }}
38
29
with :
39
30
activate-environment : scitt
40
31
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 : |
42
36
python -m pip install -e .
43
37
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
44
46
45
47
ci-cd-build-and-push-image-container :
46
48
name : CI/CD (container)
You can’t perform that action at this time.
0 commit comments