chore: use kepler_vm metrics as energy source #170
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run linters and formatters | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
jobs: | |
markdown-lint: | |
runs-on: ubuntu-latest | |
steps: | |
# checkout soruce code | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# setup Python environment | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
# install hatch | |
- name: Install hatch | |
run: | | |
python -m pip install --upgrade pip | |
pip install hatch | |
# scan for markdown linting errors | |
- name: Run pymarkdownlnt on markdown files | |
shell: bash | |
run: | | |
make lint | |
# run hatch fmt | |
- name: Run formatter using hatch | |
shell: bash | |
run: | | |
make fmt | |
git diff --exit-code |