Add option to serve metrics via http #147
Workflow file for this run
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: Code Style | |
on: | |
- push | |
- pull_request | |
jobs: | |
flake: | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | |
name: flake8 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/poetry.lock') }} | |
restore-keys: | | |
${{ runner.os }}-pip-${{ hashFiles('**/poetry.lock') }} | |
- name: Install Dependencies | |
run: | | |
python -m pip install poetry | |
poetry self add "poetry-dynamic-versioning[plugin]" | |
poetry install | |
- name: Lint with flake8 | |
run: poetry run flake8 --show-source src |