Skip to content

[Enhancement] Adding aggregator metrics to platform for generic or task specific usage #221

[Enhancement] Adding aggregator metrics to platform for generic or task specific usage

[Enhancement] Adding aggregator metrics to platform for generic or task specific usage #221

Workflow file for this run

name: Run CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
types: [ opened, synchronize, reopened, ready_for_review ]
permissions:
contents: read
pages: write
id-token: write
env:
POETRY_CACHE_DIR: /tmp/poetry_cache
jobs:
build:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
# ---- Cleanup runner disk ----
- name: Free disk space
run: |
df -h
sudo rm -rf /usr/local/lib/android || true
sudo rm -rf /usr/share/dotnet || true
sudo rm -rf /opt/ghc || true
sudo rm -rf /usr/local/.ghcup || true
sudo rm -rf "$AGENT_TOOLSDIRECTORY" || true
sudo apt-get clean
df -h
# ---- Checkout ----
- uses: actions/checkout@v4
# ---- Python + Poetry ----
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
# ---- Cache Poetry deps only ----
- uses: actions/cache@v4
with:
path: /tmp/poetry_cache
key: poetry-${{ runner.os }}-3.9-${{ hashFiles('**/poetry.lock', '**/pyproject.toml') }}
# ---- Env Setup ----
- run: make setup-dev
# ---- FORMAT ----
- name: Run formatter
run: make check-format
# ---- LINT ----
- name: Run linter
run: make check-lint
# ---- TEST ----
- name: Run tests
run: make test
# ---- DOCS ----
- name: Build docs
run: make docs
# ---- Upload docs artifact ----
- uses: actions/upload-pages-artifact@v3
with:
path: site
# Deploy Docs
deploy_docs:
if: github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4