Skip to content

Commit 8cb69af

Browse files
committed
test if runner.os is availablle
1 parent 0b4c525 commit 8cb69af

1 file changed

Lines changed: 6 additions & 22 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ jobs:
3636
submodules: false
3737
coverage: codecov
3838
toxdeps: tox-pypi-filter
39-
cache-path: |
40-
$HOME/sunpy/data_manager
41-
cache-key: sunpy-data-linux-${{ github.ref }}
42-
cache-restore-keys: sunpy-data-linux-refs/heads/main
39+
cache-path: ~/sunpy/data_manager
40+
cache-key: sunpy-data-${{ runner.os }}-${{ github.ref }}
41+
cache-restore-keys: sunpy-data-${{ runner.os }}-refs/heads/main
4342
envs: |
4443
- linux: py313
4544
secrets:
@@ -66,31 +65,16 @@ jobs:
6665
submodules: false
6766
coverage: codecov
6867
toxdeps: tox-pypi-filter
69-
cache-path: |
70-
$HOME/sunpy/data_manager
71-
cache-key: sunpy-data-${{ github.ref }}
68+
cache-path: ~/sunpy/data_manager
69+
cache-key: sunpy-data-${{ runner.os }}-${{ github.ref }}
70+
cache-restore-keys: sunpy-data-${{ runner.os }}-refs/heads/main
7271
posargs:
7372
envs: |
7473
- linux: py314
75-
cache-path: $HOME/sunpy/data_manager
76-
cache-key: sunpy-data-linux-${{ github.ref }}
77-
cache-restore-keys: sunpy-data-linux-refs/heads/main
7874
- windows: py312
79-
cache-path: $HOME/sunpy/data_manager
80-
cache-key: sunpy-data-windows-${{ github.ref }}
81-
cache-restore-keys: sunpy-data-windows-refs/heads/main
8275
- macos: py312
83-
cache-path: $HOME/sunpy/data_manager
84-
cache-key: sunpy-data-macos-${{ github.ref }}
85-
ache-restore-keys: sunpy-data-macos-refs/heads/main
8676
- linux: py312-oldestdeps
87-
cache-path: $HOME/sunpy/data_manager
88-
cache-key: sunpy-data-linux-${{ github.ref }}
89-
cache-restore-keys: sunpy-data-linux-refs/heads/main
9077
- linux: py314-devdeps
91-
cache-path: $HOME/sunpy/data_manager
92-
cache-key: sunpy-data-linux-${{ github.ref }}
93-
cache-restore-keys: sunpy-data-linux-refs/heads/main
9478
secrets:
9579
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
9680

0 commit comments

Comments
 (0)