Skip to content

Commit a06963c

Browse files
committed
Add python 2.7 and adjust shell
1 parent 24a379f commit a06963c

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
os: [ubuntu-latest]
19+
python-version: ["3.7", "2.7"]
1920

2021
steps:
2122
- uses: actions/checkout@v2
@@ -25,27 +26,32 @@ jobs:
2526
auto-update-conda: true
2627
python-version: ${{ matrix.python-version }}
2728

28-
- name: "Configure conda"
29-
shell: bash
29+
- name: Conda info
30+
shell: bash -l {0}
31+
run: conda info
32+
33+
- name: "Init conda"
34+
shell: bash -l {0}
3035
run: |
31-
conda init --all
36+
conda init bash
3237
3338
- name: Conda install dependencies
34-
shell: bash
39+
shell: bash -l {0}
3540
run: |
3641
conda create -n root-nightly -y -c https://root.cern/download/conda-nightly/latest -c conda-forge root-nightly cmake pytest pytest-benchmark pytest-csv numpy numba
37-
conda activate root-nightly
3842
3943
- name: Configure and build
40-
shell: bash
44+
shell: bash -l {0}
4145
run: |
46+
conda activate root-nightly
4247
mkdir -p build && cd build
43-
$CONDA/bin/cmake ..
48+
cmake ..
4449
cmake --build .
4550
4651
- name: Run benchmarks
47-
shell: bash
52+
shell: bash -l {0}
4853
run: |
54+
conda activate root-nightly
4955
export PYTHONHOME=$CONDA
5056
cd build
51-
$CONDA/bin/ctest -V
57+
ctest -V

0 commit comments

Comments
 (0)