Skip to content

Commit 0722edc

Browse files
committed
ci: Span matrix
1 parent 1f07379 commit 0722edc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,20 @@ jobs:
3636
uses: actions/cache@v2
3737
with:
3838
path: ~/conda_pkgs_dir # from: conda-incubator/setup-miniconda@v2
39-
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
39+
key: ${{ runner.os }}-conda-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}-${{
4040
hashFiles('conda.yml') }}
4141

4242
- name: Cache pip
4343
uses: actions/cache@v2
4444
with:
4545
path: ${{ matrix.pip_cache_path }}
46-
key: ${{ runner.os }}-pip--${{ env.CACHE_NUMBER }}-${{
46+
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}-${{
4747
hashFiles('requirements.txt') }}
4848

4949
- name: Conda environment setup
5050
uses: conda-incubator/setup-miniconda@v2
5151
with:
52+
python-version: ${{ matrix.python-version }}
5253
activate-environment: pytoda
5354
environment-file: conda.yml
5455
auto-activate-base: false
@@ -73,7 +74,7 @@ jobs:
7374
if: always()
7475
with:
7576
status: ${{ job.status }}
76-
text: "CI Build ${{ matrix.os }}"
77+
text: "CI Build ${{ matrix.os }} Python ${{ matrix.python-version}}"
7778
author_name: ${{ github.actor }}
7879
env:
7980
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)