Skip to content

Issue with shapely compatibility with numpy 2.1 has been fixed #50

Issue with shapely compatibility with numpy 2.1 has been fixed

Issue with shapely compatibility with numpy 2.1 has been fixed #50

Workflow file for this run

name: Main
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
quality:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
with:
submodules: "true"
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Set up the environment
uses: ./.github/actions/setup-poetry-env
- name: Run checks
run: make check
tox:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest] # later, add macos-latest, windows-latest
energyplus-version: [9.2.0] # later, add 9.4.0
include:
- runs-on: ubuntu-latest
compiler: gcc
- energyplus-version: 9.2.0
energyplus-sha: 921312fa1d
energyplus-install: 9-2-0
fail-fast: false
steps:
- name: Check out
uses: actions/checkout@v3
with:
submodules: "true"
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Load cached venv
uses: actions/cache@v3
with:
path: .tox
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Install tox
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Install EnergyPlus
uses: Elementa-Engineering/install-energyplus@v1
with:
energyplus-version: ${{ matrix.energyplus-version }}
energyplus-sha: ${{ matrix.energyplus-sha }}
energyplus-install: ${{ matrix.energyplus-install }}
- name: Test with tox
run: tox -- -n 2 --doctest-modules tests --cov --cov-config=pyproject.toml --cov-report=xml
env:
ENERGYPLUS_VERSION: ${{ matrix.energyplus-version }}
- name: Upload coverage reports to Codecov with GitHub Action on Python 3.11
uses: codecov/codecov-action@v3
if: ${{ matrix.python-version == '3.11' }}