Skip to content

POWEROPS-2584: Adding dummy ts to LinkedTimeSeries #1907

POWEROPS-2584: Adding dummy ts to LinkedTimeSeries

POWEROPS-2584: Adding dummy ts to LinkedTimeSeries #1907

Workflow file for this run

name: build
on:
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
# The installation is required as mypy must be run in the local system environment, not in the pre-commit environment.
- name: Install required dependencies
run: |
python3 -m pip install --upgrade pip poetry
poetry config virtualenvs.create false
poetry install
- name: Linting and static code checks
run: |
pre-commit run --all-files
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.9"
# Assume these are covered by 3.12
# - "3.10"
# - "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install core dependencies
run: |
python3 -m pip install --upgrade pip poetry
poetry config virtualenvs.create false
poetry install
- name: Test
env:
CI: 1
run: pytest --skipcdf
- uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
- name: Build package
run: poetry build
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install Dependencies
run: |
python -m pip install --upgrade --upgrade-strategy eager --no-cache-dir .[docs]
- name: Build documentation
run: |
mkdocs build