@@ -26,13 +26,19 @@ jobs:
2626 python-version : ["3.10"]
2727 steps :
2828 - uses : actions/checkout@v6
29+
30+ - name : Get year & week number
31+ id : get-date
32+ run : |
33+ echo "date=$(/bin/date "+%Y-%U")" >> $GITHUB_OUTPUT
34+
2935 - uses : astral-sh/setup-uv@v7
3036 with :
3137 version : " latest"
3238 python-version : " ${{ matrix.python-version }}"
3339 activate-environment : true
3440 enable-cache : true
35- cache-suffix : " ${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}"
41+ cache-suffix : " ${{ steps.get-date.outputs.date }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}"
3642 cache-dependency-glob : |
3743 **/docs/requirements.txt
3844 **/requirements-dev.txt
@@ -67,13 +73,19 @@ jobs:
6773 python-version : ["3.10"]
6874 steps :
6975 - uses : actions/checkout@v6
76+
77+ - name : Get year & week number
78+ id : get-date
79+ run : |
80+ echo "date=$(/bin/date "+%Y-%U")" >> $GITHUB_OUTPUT
81+
7082 - uses : astral-sh/setup-uv@v7
7183 with :
7284 version : " latest"
7385 python-version : ${{ matrix.python-version }}
7486 activate-environment : true
7587 enable-cache : true
76- cache-suffix : " ${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}"
88+ cache-suffix : " ${{ steps.get-date.outputs.date }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}"
7789 cache-dependency-glob : |
7890 **/docs/requirements.txt
7991 **/requirements-dev.txt
@@ -100,13 +112,19 @@ jobs:
100112 python-version : ["3.10"]
101113 steps :
102114 - uses : actions/checkout@v6
115+
116+ - name : Get year & week number
117+ id : get-date
118+ run : |
119+ echo "date=$(/bin/date "+%Y-%U")" >> $GITHUB_OUTPUT
120+
103121 - uses : astral-sh/setup-uv@v7
104122 with :
105123 version : " latest"
106124 python-version : " ${{ matrix.python-version }}"
107125 activate-environment : true
108126 enable-cache : true
109- cache-suffix : " ${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}"
127+ cache-suffix : " ${{ steps.get-date.outputs.date }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}"
110128 cache-dependency-glob : |
111129 **/docs/requirements.txt
112130 **/requirements-dev.txt
0 commit comments