Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Update sphinx requirement from !=5.1.0,<7.1.1,>=4 to >=4,!=5.1.0,<7.1.2 #12

Update sphinx requirement from !=5.1.0,<7.1.1,>=4 to >=4,!=5.1.0,<7.1.2

Update sphinx requirement from !=5.1.0,<7.1.1,>=4 to >=4,!=5.1.0,<7.1.2 #12

name: compute-metrics
on:
push:
branches:
- main
env:
MLFLOW_TRACKING_URI: ~/mlruns/
PUDL_OUTPUT: ~/pudl-work/output/
PUDL_INPUT: ~/pudl-work/data/
jobs:
ci-compute-metrics:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up conda environment for testing
uses: conda-incubator/[email protected]
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
python-version: "3.11"
activate-environment: ferc1_eia_match
environment-file: environment.yml
- shell: bash -l {0}
run: |
conda info
conda list
conda config --show-sources
conda config --show
printenv | sort
ls /usr/share/miniconda3/envs/ferc1_eia_match/bin/
- name: Download PUDL DB and log pre-test PUDL workspace contents
run: |
mkdir -p ~/pudl-work/output/
curl -o ~/pudl-work/output/pudl.sqlite http://intake.catalyst.coop.s3.amazonaws.com/dev/pudl.sqlite
find ~/pudl-work/
- name: Log SQLite3 version
run: |
conda run -n ferc1_eia_match which sqlite3
conda run -n ferc1_eia_match sqlite3 --version
- name: Cache metrics
id: cache-metrics
uses: actions/cache@v3
with:
path: $MLFLOW_TRACKING_URI
key: ${{ runner.os }}-metrics
- name: Compute metrics
id: compute-metrics
run: |
conda run -v --live-stream -n ferc1_eia_match compute_metrics --mlrun_uri $MLFLOW_TRACKING_URI