Skip to content

Add "dynamic" italian scenario & add new flow cap rate limit #27

Add "dynamic" italian scenario & add new flow cap rate limit

Add "dynamic" italian scenario & add new flow cap rate limit #27

Workflow file for this run

name: Pull Request CI
on:
pull_request:
branches:
- "main"
paths-ignore:
- README.md
- CHANGELOG.md
- LICENSE
- AUTHORS
- docs/**
- .readthedocs.yml
- .pre-commit-config.yaml
- mkdocs.yml
defaults:
run:
shell: bash -l {0}
concurrency:
# Use github.run_id on main branch
# Use github.event.pull_request.number on pull requests, so it's unique per pull request
# Use github.ref on other branches, so it's unique per branch
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
if: github.event.pull_request.draft == false
strategy:
matrix:
os: [ubuntu-latest]
py3version: ["10", "11", "12"]
include:
- os: windows-latest
py3version: "12"
- os: macos-latest
py3version: "12"
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: latest
environment-name: ${{ github.event.repository.name }}-${{ matrix.os }}-3${{ matrix.py3version }}-${{ hashFiles('requirements/dev.txt') }}
environment-file: requirements/base.txt
create-args: >-
-c conda-forge/label/calliope_dev
-f requirements/dev.txt
curl
python=3.${{ matrix.py3version }}
post-cleanup: all
cache-environment: true
- name: Install package
run: pip install --no-dependencies -e .
- name: install CBC (Windows)
if: matrix.os == 'windows-latest'
run: |
curl -L https://github.com/coin-or/Cbc/releases/download/releases%2F2.10.10/Cbc-releases.2.10.10-w64-msvc17-md.zip -o cbc.zip
unzip cbc.zip -d ${HOME}/cbc
echo "${HOME}/cbc/bin" >> $GITHUB_PATH
- name: install CBC (Unix)
if: matrix.os != 'windows-latest'
run: micromamba install coin-or-cbc
- name: run tests
run: pytest