@@ -40,12 +40,14 @@ jobs:
4040 - name : Setup env file path (ubuntu)
4141 if : matrix.os == 'ubuntu'
4242 run : |
43- echo "env_file=envs/linux-pinned.yaml" >> $GITHUB_ENV
43+ # echo "env_file=envs/linux-pinned.yaml" >> $GITHUB_ENV
44+ echo "env_file=${{ env.BASE_ENV }}" >> $GITHUB_ENV # TODO Remove
4445
4546 - name : Setup env file path (macos and windows)
4647 if : matrix.os != 'ubuntu'
4748 run : |
4849 echo "env_file=envs/${{ matrix.os }}-pinned.yaml" >> $GITHUB_ENV
50+ echo "env_file=${{ env.BASE_ENV }}" >> $GITHUB_ENV # TODO Remove
4951
5052 - name : Use base env file if it was changed
5153 run : |
6062 - name : Setup cache keys
6163 run : |
6264 echo "WEEK=$(date +'%Y%U')" >> $GITHUB_ENV # data and cutouts
63-
65+
6466 - uses : actions/cache@v4
6567 with :
6668 path : |
7173 - uses : conda-incubator/setup-miniconda@v3
7274 with :
7375 miniforge-version : latest
74- activate-environment : pypsa-eur
76+ activate-environment : pypsa-de
7577 channel-priority : strict
7678
7779 - name : Cache Conda env
@@ -84,13 +86,21 @@ jobs:
8486 - name : Update environment
8587 if : steps.cache-env.outputs.cache-hit != 'true'
8688 run : |
87- conda env update -n pypsa-eur -f ${{ env.env_file }}
89+ conda env update -n pypsa-de -f ${{ env.env_file }}
8890 echo "Run conda list" && conda list
89-
90- - name : Run pylint check on scripts
91- # check for undefined variables to reuse functions across scripts
91+
92+ - name : Setup ixmp4 access
9293 run : |
93- pylint --disable=all --enable=E0601 --output-format=parseable scripts/add_* scripts/prepare_* scripts/solve_*
94+ mkdir -p ~/.local/share/ixmp4/
95+ cat > ~/.local/share/ixmp4/credentials.toml << 'EOL'
96+ ${{ secrets.IXMP4_ACCESS }}
97+ EOL
98+ shell : bash
99+
100+ # - name: Run pylint check on scripts
101+ # # check for undefined variables to reuse functions across scripts
102+ # run: |
103+ # pylint --disable=all --enable=E0601,E0606 --output-format=parseable scripts/add_* scripts/prepare_* scripts/solve_*
94104
95105 - name : Run snakemake test workflows
96106 run : |
@@ -138,7 +148,8 @@ jobs:
138148 echo "env_file=${{ env.BASE_ENV }}" >> $GITHUB_ENV
139149 else
140150 echo "Base env ${{ env.BASE_ENV }} not changed. Using pinned envs."
141- echo "env_file=envs/linux-pinned.yaml" >> $GITHUB_ENV
151+ # echo "env_file=envs/linux-pinned.yaml" >> $GITHUB_ENV
152+ echo "env_file=${{ env.BASE_ENV }}" >> $GITHUB_ENV # TODO Remove
142153 fi
143154
144155 # Only run checks if package is not pinned
@@ -150,7 +161,7 @@ jobs:
150161 else
151162 echo "pinned=false" >> $GITHUB_ENV
152163 fi
153-
164+
154165 - name : Setup cache keys
155166 if : env.pinned == 'false'
156167 run : |
@@ -167,7 +178,7 @@ jobs:
167178 - uses : conda-incubator/setup-miniconda@v3
168179 if : env.pinned == 'false'
169180 with :
170- activate-environment : pypsa-eur
181+ activate-environment : pypsa-de
171182
172183 - name : Cache Conda env
173184 if : env.pinned == 'false'
@@ -180,9 +191,17 @@ jobs:
180191 - name : Update environment
181192 if : env.pinned == 'false' && steps.cache-env.outputs.cache-hit != 'true'
182193 run : |
183- conda env update -n pypsa-eur -f ${{ env.env_file }}
194+ conda env update -n pypsa-de -f ${{ env.env_file }}
184195 echo "Run conda list" && conda list
185196
197+ - name : Setup ixmp4 access
198+ run : |
199+ mkdir -p ~/.local/share/ixmp4/
200+ cat > ~/.local/share/ixmp4/credentials.toml << 'EOL'
201+ ${{ secrets.IXMP4_ACCESS }}
202+ EOL
203+ shell : bash
204+
186205 - name : Install inhouse packages from master
187206 if : env.pinned == 'false'
188207 run : |
@@ -202,4 +221,4 @@ jobs:
202221 logs
203222 .snakemake/log
204223 results
205- retention-days : 3
224+ retention-days : 3
0 commit comments