-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add github action ci * only one environment update call * line break in echo did not work * fix syntax * fix version syntax * switch to glpk * reduce time from month to week * list environment * use new ipopt version conda-forge/ipopt-feedstock#55 * remove accidental additions * request ipopt lower than 3.13.3 conda-forge/ipopt-feedstock#64 * add badges and release notes * add badge to readme and make ci.yaml cc-0
- Loading branch information
Showing
6 changed files
with
53 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# SPDX-FileCopyrightText: : 2021 The PyPSA-Eur Authors | ||
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
max-parallel: 5 | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Miniconda | ||
uses: conda-incubator/[email protected] | ||
with: # checks out environment 'test' by default | ||
mamba-version: "*" | ||
channels: conda-forge,defaults | ||
channel-priority: true | ||
|
||
- name: Install dependencies | ||
run: | | ||
echo -ne "url: ${CDSAPI_URL}\nkey: ${CDSAPI_TOKEN}\n" > ~/.cdsapirc | ||
echo -e " - glpk\n - ipopt<3.13.3" >> envs/environment.yaml | ||
mamba env update -f envs/environment.yaml --name test | ||
- name: Test snakemake workflow | ||
run: | | ||
conda list | ||
cp test/config.test1.yaml config.yaml | ||
snakemake -j all solve_all_networks | ||
rm -rf resources/*.nc resources/*.geojson resources/*.h5 networks results |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters