Skip to content

Commit

Permalink
Take 5
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Nov 26, 2024
1 parent d19407f commit 745a752
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,15 @@ jobs:

get-week-number:
runs-on: ubuntu-latest
outputs:
pr-number: ${{ steps.get-week-number.outputs.PR_NUMBER }}
steps:
- name: Get week number
run:
echo "PR_NUMBER=$(date -u "+%V")" >> $GITHUB_OUTPUT
echo "WEEK_NUMBER=$(date -u "+%V")" >> "$GITHUB_OUTPUT"

test:
needs: [linting, manifest, get-week-number]
name: ${{ matrix.os }} py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
env:
WEEK_NUMBER: ${{ needs.get-week-number.outputs.pr-number }}
strategy:
matrix:
# Run all supported Python versions on linux
Expand All @@ -60,9 +56,9 @@ jobs:
~/.brainglobe
!~/.brainglobe/atlas.tar.gz
enableCrossOsArchive: 'true'
key: brainglobe-{{ $WEEK_NUMBER }}
key: brainglobe-${{ steps.get-week-number.outputs.WEEK_NUMBER }}
restore-keys: |
brainglobe-{{ $WEEK_NUMBER }}
brainglobe-${{ steps.get-week-number.outputs.WEEK_NUMBER }}
brainglobe
- uses: neuroinformatics-unit/actions/test@v2
Expand Down

0 comments on commit 745a752

Please sign in to comment.