Skip to content

Commit

Permalink
Update hash
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Sep 29, 2023
1 parent 7ac0412 commit d70520d
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,22 +91,21 @@ jobs:
PYTEST_MARKER: ${{ matrix.test-type == 'serial' && 'serial' || 'not serial' }}
PYTEST_NUMPROCESSES: ${{ matrix.test-type == 'serial' && 0 || 'auto' }}
PYTEST_SPLITS: ${{ matrix.test-type == 'serial' && 2 || 3 }}
HASH: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.default-channel }}-Py${{ matrix.python-version }}-${{ matrix.test-type }}-${{ matrix.test-group }}

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Timestamp
run: echo "TIMESTAMP=$(date -u "+%Y%m")" >> $GITHUB_ENV
- name: Hash + Timestamp
run: echo "HASH=${{ runner.os }}-${{ runner.arch }}-Py${{ matrix.python-version }}-${{ matrix.conda-version }}-${{ matrix.test-type }}-${{ matrix.test-group }}-$(date -u "+%Y%m")" >> $GITHUB_ENV
shell: bash

- name: Cache conda
uses: actions/cache@v3
with:
path: ~/conda_pkgs_dir
key: ${{ env.HASH }}-${{ env.TIMESTAMP }}
key: cache-${{ env.HASH }}

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
Expand Down Expand Up @@ -191,22 +190,21 @@ jobs:
PYTEST_MARKER: ${{ matrix.test-type == 'serial' && 'serial' || 'not serial and not slow' }}
PYTEST_NUMPROCESSES: ${{ matrix.test-type == 'serial' && 0 || 'auto' }}
PYTEST_SPLITS: ${{ matrix.test-type == 'serial' && 2 || 3 }}
HASH: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.default-channel }}-Py${{ matrix.python-version }}-${{ matrix.test-type }}-${{ matrix.test-group }}

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Timestamp
run: echo "TIMESTAMP=$(date -u "+%Y%m")" >> $GITHUB_ENV
- name: Hash + Timestamp
run: echo "HASH=${{ runner.os }}-${{ runner.arch }}-Py${{ matrix.python-version }}-${{ matrix.conda-version }}-${{ matrix.test-type }}-${{ matrix.test-group }}-$(date -u "+%Y%m")" >> $GITHUB_ENV
shell: bash

- name: Cache conda
uses: actions/cache@v3
with:
path: ~/conda_pkgs_dir
key: ${{ env.HASH }}-${{ env.TIMESTAMP }}
key: cache-${{ env.HASH }}

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
Expand Down Expand Up @@ -304,15 +302,15 @@ jobs:
with:
fetch-depth: 0

- name: Timestamp
run: echo "TIMESTAMP=$(date -u "+%Y%m")" >> $GITHUB_ENV
- name: Hash + Timestamp
run: echo "HASH=${{ runner.os }}-${{ runner.arch }}-Py${{ matrix.python-version }}-${{ matrix.conda-version }}-${{ matrix.test-type }}-${{ matrix.test-group }}-$(date -u "+%Y%m")" >> $GITHUB_ENV
shell: bash

- name: Cache conda
uses: actions/cache@v3
with:
path: ~/conda_pkgs_dir
key: ${{ env.HASH }}-${{ env.TIMESTAMP }}
key: cache-${{ env.HASH }}

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
Expand Down

0 comments on commit d70520d

Please sign in to comment.