1313
1414name : Install from PyPi
1515
16+ permissions : {}
17+
1618# runs on a push on main and at the end of every day
1719on :
1820 # triggering on push without branch name will run tests every time
2729 # branches:
2830 # - main
2931 schedule :
30- - cron : ' 0 0 * * *'
32+ - cron : " 0 0 * * *"
3133
3234# Required shell entrypoint to have properly configured bash shell
3335defaults :
@@ -37,7 +39,7 @@ defaults:
3739jobs :
3840 linux :
3941 runs-on : " ubuntu-latest"
40- if : github.repository == 'ESMValGroup/ESMValCore' # avoid GAs in forks
42+ if : github.repository == 'ESMValGroup/ESMValCore' # avoid GAs in forks
4143 strategy :
4244 matrix :
4345 python-version : ["3.12", "3.13", "3.14"]
4648 fail-fast : false
4749 name : Linux Python ${{ matrix.python-version }}
4850 steps :
49- - uses : actions/checkout@v6
50- - uses : conda-incubator/setup-miniconda@v3
51+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
52+ with :
53+ persist-credentials : false
54+ - uses : conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
5155 with :
5256 activate-environment : esmvalcore
5357 environment-file : environment.yml
@@ -68,24 +72,26 @@ jobs:
6872 esmvaltool --help
6973 esmvaltool version 2>&1 | tee pip_install_linux_artifacts_python_${{ matrix.python-version }}/version.txt
7074 - name : Upload artifacts
71- if : ${{ always() }} # upload artifacts even if fail
72- uses : actions/upload-artifact@v6
75+ if : ${{ always() }} # upload artifacts even if fail
76+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
7377 with :
7478 name : PIP_Install_Linux_python_${{ matrix.python-version }}
7579 path : pip_install_linux_artifacts_python_${{ matrix.python-version }}
7680
7781 osx :
7882 runs-on : " macos-latest"
79- if : github.repository == 'ESMValGroup/ESMValCore' # avoid GAs in forks
83+ if : github.repository == 'ESMValGroup/ESMValCore' # avoid GAs in forks
8084 strategy :
8185 matrix :
8286 python-version : ["3.12", "3.13", "3.14"]
83- architecture : ["x64"] # need to force Intel, arm64 builds have issues
87+ architecture : ["x64"] # need to force Intel, arm64 builds have issues
8488 fail-fast : false
8589 name : OSX Python ${{ matrix.python-version }}
8690 steps :
87- - uses : actions/checkout@v6
88- - uses : conda-incubator/setup-miniconda@v3
91+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
92+ with :
93+ persist-credentials : false
94+ - uses : conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
8995 with :
9096 architecture : ${{ matrix.architecture }}
9197 activate-environment : esmvalcore
@@ -106,8 +112,8 @@ jobs:
106112 esmvaltool --help
107113 esmvaltool version 2>&1 | tee pip_install_osx_artifacts_python_${{ matrix.python-version }}/version.txt
108114 - name : Upload artifacts
109- if : ${{ always() }} # upload artifacts even if fail
110- uses : actions/upload-artifact@v6
115+ if : ${{ always() }} # upload artifacts even if fail
116+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
111117 with :
112118 name : PIP_Install_OSX_python_${{ matrix.python-version }}
113119 path : pip_install_osx_artifacts_python_${{ matrix.python-version }}
0 commit comments